/// <summary> /// RabbitTopologyService dispose method. /// </summary> /// <param name="disposing"></param> protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { RabbitChannelPool.Shutdown(); } _disposedValue = true; } }
/// <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; } }