How to unsubscribe the NServiceBus subscription?
If I choose to use the auto subscription in NServiceBus pub sub model, the system does not auto unsubscribe when the client exists.
I can always do a manual unsubscribe, but I having trouble figuring out the existing list of subscriptions and I don't want to hard code the unsubscribe.
So my question is: is there an auto-unsubscribe function in nservicebus? 开发者_JAVA百科 If not, how can I get a list of current subscriptions for a client?
I don't think you are going to find an auto-unsubscribe. Udi and company have intentionally designed NServiceBus to make it hard to do things that don't fit the async, pub/sub SOA pattern. Generally, the fact that the client is running or not running would not affect whether or not the subscription is still valid. If that is really what you need, you'll probably have to code that in yourself.
精彩评论