/// <summary>
 /// RabbitTopologyService dispose method.
 /// </summary>
 /// <param name="disposing"></param>
 protected virtual void Dispose(bool disposing)
 {
     if (!_disposedValue)
     {
         if (disposing)
         {
             RabbitChannelPool.Shutdown();
         }
         _disposedValue = true;
     }
 }
示例#2
0
        /// <summary>
        /// RabbitService dispose method.
        /// </summary>
        /// <param name="disposing"></param>
        protected override void Dispose(bool disposing)
        {
            if (!_disposedValue)
            {
                if (disposing)
                {
                    _stopPingPong = true;
                    _cancellationTokenSource.Cancel();
                    _cancellationTokenSource.Dispose();
                    RabbitChannelPool.Shutdown();
                }

                _disposedValue = true;
            }
        }