Exemplo n.º 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));
     }
 }
Exemplo n.º 2
0
 public StreamServerHost(params Uri[] baseAddresses)
     : base(typeof(StreamServer), baseAddresses)
 {
     availableStreams = new InputQueue <StreamConnection>();
 }
Exemplo n.º 3
0
 public WaitQueueReader(InputQueue <T> inputQueue)
 {
     this.inputQueue = inputQueue;
     waitEvent       = new ManualResetEvent(false);
 }
Exemplo n.º 4
0
 public QueueBufferedStream(TimeSpan naglingDelay)
 {
     this.naglingDelay = naglingDelay;
     this.done         = new ManualResetEvent(false);
     this.dataChunks   = new InputQueue <byte[]>();
 }