Rushui Guan
Rushui Guan

Reputation: 3163

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? If not, how can I get a list of current subscriptions for a client?

Upvotes: 1

Views: 1826

Answers (1)

Eric Farr
Eric Farr

Reputation: 2713

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.

Upvotes: 3

Related Questions