public void Dispose() { _manualResetEvent.Set(); Context.Dispose(); _eventListeners.ForEach(e => e.Dispose()); _commandListeners.ForEach(e => e.Dispose()); }
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; }
public void Dispose() { Context.Dispose(); _eventListeners.ForEach(e => e.Dispose()); _commandListeners.ForEach(e => e.Dispose()); }