public void Dispose()
 {
     _manualResetEvent.Set();
     Context.Dispose();
     _eventListeners.ForEach(e => e.Dispose());
     _commandListeners.ForEach(e => e.Dispose());
 }
Example #2
0
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _channel.ExchangeDelete(NameConstants.BffWebshopEventReplayExchange, false);

                _channel?.Dispose();
                _context?.Dispose();
            }

            _disposed = true;
        }
        protected virtual void Dispose(bool disposing)
        {
            if (_disposed)
            {
                return;
            }

            if (disposing)
            {
                _queues.ForEach(q => _channel?.QueueDelete(q, false, false));
                _channel.ExchangeDelete(NameConstants.BestelServiceEventReplayExchange, false);

                _channel?.Dispose();
                _context?.Dispose();
            }

            _disposed = true;
        }
Example #4
0
 public void Dispose()
 {
     Context.Dispose();
     _eventListeners.ForEach(e => e.Dispose());
     _commandListeners.ForEach(e => e.Dispose());
 }