private void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _messageBrokerQueue?.Dispose(); } _disposed = true; } }
protected virtual void Dispose(bool disposing) { if (!_disposed) { if (disposing) { _cancellationTokenSource.Dispose(); _queue?.Dispose(); } _disposed = true; } }