public void Stop()
        {
            _backplane.Stop();

            _backplane.MessageReceived -= MessageReceivedHandler;
            _backplane.ClusterMember   -= ClusterMemberHandler;
            _backplane.ZoneMember      -= ZoneMemberHandler;

            _subscriptions.Dispose();
        }
Example #2
0
        public void Stop()
        {
            _backplane.Stop();

            _backplane.MessageReceived -= MessageReceivedHandler;
            _backplane.ClusterMember   -= ClusterMemberHandler;
            _backplane.ZoneMember      -= ZoneMemberHandler;

            _subscriptions.Dispose();
            _subscriptions = null;
            _messageBus.ThreadPool.StopDedicatedWorker(_workerThreadId);
        }