public void Stop() { _backplane.Stop(); _backplane.MessageReceived -= MessageReceivedHandler; _backplane.ClusterMember -= ClusterMemberHandler; _backplane.ZoneMember -= ZoneMemberHandler; _subscriptions.Dispose(); }
public void Stop() { _backplane.Stop(); _backplane.MessageReceived -= MessageReceivedHandler; _backplane.ClusterMember -= ClusterMemberHandler; _backplane.ZoneMember -= ZoneMemberHandler; _subscriptions.Dispose(); _subscriptions = null; _messageBus.ThreadPool.StopDedicatedWorker(_workerThreadId); }