public void Dispose() { circuitBreaker?.Dispose(); semaphore?.Dispose(); messageProcessing?.Dispose(); connection?.Dispose(); }
public void Dispose() { if (disposed) { return; } circuitBreaker?.Dispose(); messagePumpCancellationTokenSource?.Dispose(); messageProcessingCancellationTokenSource?.Dispose(); connection?.Dispose(); disposed = true; }