public MakeConnectionDispatcher(Uri uri, object lockObj) { this.contexts = new InputQueue <MakeConnectionRequestContext>(); this.contextDictionary = new Dictionary <UniqueId, MakeConnectionRequestContext>(); this.Uri = uri; this.lockObj = lockObj; }
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)); } }
internal MakeConnectionDuplexChannel(ChannelManagerBase channelManager, TInnerChannel innerChannel) : base(channelManager, innerChannel) { this.exceptionQueue = new ExceptionQueue(new object()); this.messageQueue = new InputQueue <Message>(); }
public WaitQueueReader(InputQueue <T> inputQueue) { this.inputQueue = inputQueue; waitEvent = new ManualResetEvent(false); }