Example #1
0
 public AsyncQueueReader(InputQueue <T> inputQueue, TimeSpan timeout, AsyncCallback callback, object state)
     : base(callback, state)
 {
     this.inputQueue = inputQueue;
     if (timeout != TimeSpan.MaxValue)
     {
         this.timer = new Timer(timerCallback, this, timeout, TimeSpan.FromMilliseconds(-1));
     }
 }
 public StreamServerHost(params Uri[] baseAddresses)
     : base(typeof(StreamServer), baseAddresses)
 {
     availableStreams = new InputQueue <StreamConnection>();
 }
Example #3
0
 public WaitQueueReader(InputQueue <T> inputQueue)
 {
     this.inputQueue = inputQueue;
     waitEvent       = new ManualResetEvent(false);
 }
 public QueueBufferedStream(TimeSpan naglingDelay)
 {
     this.naglingDelay = naglingDelay;
     this.done         = new ManualResetEvent(false);
     this.dataChunks   = new InputQueue <byte[]>();
 }