Redis Pub/Sub ServiceStack, cancelling the thread
问题 This maybe a more general threading question i'm not sure. But I've got a WPF app that subscribes to channels and listens for messages from a redis database. App.SubscriptionThread = new Thread(() => { _redisSubscription.SubscribeToChannels("ChannelA", "ChannelB"); }); App.SubscriptionThread.Start(); Once I start this I have no idea how to stop it. Things I've tried. Using the Thread.Abort . This apparently doesn't stop it, as the thread just goes into a hang then forever (no unsubscription