public void Dispose() { if (!cancellationTokenSource.IsCancellationRequested) { cancellationTokenSource.Cancel(); } _taskScheduler.Dispose(); }
public void Dispose() { if (!cancellationTokenSource.IsCancellationRequested) { cancellationTokenSource.Cancel(); } _taskScheduler.Dispose(); }