public void Dispose() { if (_BQSvc != null) { _BQSvc.Dispose(); _BQSvc = null; } }
public void Dispose() { if (_cancellationTokenSource != null) { _cancellationTokenSource.Cancel(); _cancellationTokenSource.Dispose(); _cancellationTokenSource = null; } if (_bufferedPublisher != null) { _bufferedPublisher.Dispose(); _bufferedPublisher = null; } if (_BQSvc != null) { _BQSvc.Dispose(); _BQSvc = null; } }