public AsyncQueueReader(InputQueue <T> inputQueue, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state) { this.inputQueue = inputQueue; if (timeout != TimeSpan.MaxValue) { timer = new Timer(timerCallback, this, timeout, TimeSpan.FromMilliseconds(-1)); } }
public AsyncQueueReader(InputQueue <T> inputQueue, TimeSpan timeout, AsyncCallback callback, object state) : base(callback, state) { this.inputQueue = inputQueue; if (timeout != TimeSpan.MaxValue) { timer = new Timer(timerCallback, this, Timeout.Infinite, Timeout.Infinite); timer.Change(timeout, Timeout.InfiniteTimeSpan); } }
public QueueBufferedStream(TimeSpan naglingDelay) { this.naglingDelay = naglingDelay; done = new ManualResetEvent(false); DataChunksQueue = new InputQueue <byte[]>(); }
public WaitQueueReader(InputQueue <T> inputQueue) { this.inputQueue = inputQueue; waitEvent = new ManualResetEvent(false); }