Hi
I am using NServiceBus 1.9 RTM in my project.
I am using Publisher - Distributor - Subscriber model.
In subscriber I subscribed using the follwoing code
var bus = NServiceBus.Configure.With()
.SpringBuilder()
.XmlSerializer()
.MsmqTransport()
.IsTransactional(false)
.PurgeOnStartup(false)
.UnicastBus()
.ImpersonateSender(false)
.DoNotAutoSubscribe()
.LoadMessageHandlers()
.CreateBus()
.Start();
bus.Subscribe<ITestMessage>();
_isSubscribed = true;
log.Info(" ITestMessage Subscribed successfully..");
_serviceBus = bus;
when i want to unsbuscribe I am doing like
_serviceBus.Unsubscribe<ITestMessage>();
But it's not unsubscribing nor throwing any error. After unsbuscribing also EventHandler still receiving messages from the distributor.
Is there anything that I am missing...? Anyone can help me.
Thanks
nRk