public MakeConnectionDispatcher(Uri uri, object lockObj)
 {
     this.contexts          = new InputQueue <MakeConnectionRequestContext>();
     this.contextDictionary = new Dictionary <UniqueId, MakeConnectionRequestContext>();
     this.Uri     = uri;
     this.lockObj = lockObj;
 }
Ejemplo n.º 2
0
 public AsyncQueueReader(InputQueue <T> inputQueue, TimeSpan timeout, AsyncCallback callback, object state)
     : base(callback, state)
 {
     if (inputQueue.AsyncCallbackGenerator != null)
     {
         base.VirtualCallback = inputQueue.AsyncCallbackGenerator();
     }
     this.inputQueue = inputQueue;
     if (timeout != TimeSpan.MaxValue)
     {
         this.timer = new Timer(timerCallback, this, timeout, TimeSpan.FromMilliseconds(-1));
     }
 }
Ejemplo n.º 3
0
 internal MakeConnectionDuplexChannel(ChannelManagerBase channelManager,
                                      TInnerChannel innerChannel) : base(channelManager, innerChannel)
 {
     this.exceptionQueue = new ExceptionQueue(new object());
     this.messageQueue   = new InputQueue <Message>();
 }
Ejemplo n.º 4
0
 public WaitQueueReader(InputQueue <T> inputQueue)
 {
     this.inputQueue = inputQueue;
     waitEvent       = new ManualResetEvent(false);
 }