protected virtual void Dispose(bool disposing) { if (!_disposedValue) { if (disposing) { _continuation = null; _bufferedTarget = null; _batchBlock.Complete(); _timingBlock.Complete(); _timer.Change(Timeout.Infinite, Timeout.Infinite); _timer.Dispose(); } _disposedValue = true; } }
public BufferredQueue(BufferredQueueOptions options, IBufferedTarget <TData> bufferedTarget) : this(options) { _bufferedTarget = bufferedTarget; }