private static void invokeDequeueCallback(ItemDequeuedCallback dequeueCallback) { if (dequeueCallback != null) { dequeueCallback.Invoke(); } }
static void InvokeDequeuedCallback(ItemDequeuedCallback dequeuedCallback) { if (dequeuedCallback != null) { dequeuedCallback(); } }
static void InvokeDequeuedCallbackLater(ItemDequeuedCallback dequeuedCallback) { if (dequeuedCallback != null) { ThreadPool.QueueUserWorkItem(OnInvokeDequeuedCallback, dequeuedCallback); } }
private static void invokeDequeueCallbackLater(ItemDequeuedCallback dequeueCallback) { if (dequeueCallback != null) { if (_OnInvokeDequeueCallback == null) { _OnInvokeDequeueCallback = onInvokeDequeueCallback; } ThreadPool.QueueUserWorkItem(_OnInvokeDequeueCallback, dequeueCallback); } }
public HttpCookieReplySessionChannelListener( HttpCookieSessionBindingElement bindingElement, BindingContext context) : base(context.Binding) { this.innerChannelListener = context.BuildInnerChannelListener <IReplyChannel>();; this.sessionTimeout = bindingElement.SessionTimeout; this.exchangeTerminateMessage = bindingElement.ExchangeTerminateMessage; this.channelMapping = new Dictionary <string, HttpCookieReplySessionChannel>(); this.channelQueue = new InputQueue <IReplySessionChannel>(); this.onReceiveRequest = new AsyncCallback(OnReceiveRequest); this.onInnerChannelClosed = new EventHandler(OnInnerChannelClosed); this.onItemDequeued = new ItemDequeuedCallback(OnItemDequeued); }
public bool EnqueueWithoutDispatch(T item, ItemDequeuedCallback dequeuedCallback) { Debug.Assert(item != null, "EnqueueWithoutDispatch: item parameter should not be null"); return(EnqueueWithoutDispatch(new Item(item, dequeuedCallback))); }
public void EnqueueAndDispatch(T value, ItemDequeuedCallback dequeuedCallback) { EnqueueAndDispatch(value, dequeuedCallback, true); }
public void EnqueueAndDispatch(T item, ItemDequeuedCallback dequeuedCallback, bool canDispatchOnThisThread) { Debug.Assert(item != null, "item parameter should not be null"); EnqueueAndDispatch(new Item(item, dequeuedCallback), canDispatchOnThisThread); }
public Item(T value, ItemDequeuedCallback dequeuedCallback) : this(value, null, dequeuedCallback) { }
Item(T value, Exception exception, ItemDequeuedCallback dequeuedCallback) { this.value = value; this.exception = exception; this.dequeuedCallback = dequeuedCallback; }
public bool EnqueueWithoutDispatch(T item, ItemDequeuedCallback dequeuedCallback) { return(EnqueueWithoutDispatch(new Item(item, dequeuedCallback))); }
public void EnqueueAndDispatch(T value, ItemDequeuedCallback dequeuedCallback, bool canDispatchOnThisThread) { Debug.Assert(value != null, "item parameter should not be null"); enqueueAndDispatch(new ExItem <T>(value, dequeuedCallback), canDispatchOnThisThread); }
public void EnqueueAndDispatch(Exception exception, ItemDequeuedCallback dequeuedCallback, bool canDispatchOnThisThread) { EnqueueAndDispatch(new Item(exception, dequeuedCallback), canDispatchOnThisThread); }
public bool EnqueueWithoutDispatch(Exception exception, ItemDequeuedCallback dequeuedCallback) { Debug.Assert(exception != null, "EnqueueWithoutDispatch: exception parameter should not be null"); return(EnqueueWithoutDispatch(new Item(exception, dequeuedCallback))); }
Item(T value, Exception exception, ItemDequeuedCallback dequeuedCallback) { Value = value; Exception = exception; DequeuedCallback = dequeuedCallback; }
private static void onInvokeDequeueCallback(object state) { ItemDequeuedCallback dequeueCallback = (ItemDequeuedCallback)state; invokeDequeueCallback(dequeueCallback); }
public bool EnqueueWithoutDispatch(T value, ItemDequeuedCallback dequeuedCallback) { Debug.Assert(value != null, "EnqueueWithoutDispatch: item parameter should not be null"); return(enqueueWithoutDispatch(new ExItem <T>(value, dequeuedCallback))); }
public void EnqueueAndDispatch(T item, ItemDequeuedCallback dequeuedCallback) { EnqueueAndDispatch(item, dequeuedCallback, true); }
public void Enqueue(RequestContext item, ItemDequeuedCallback dequeuedCallback) { this.requestQueue.EnqueueAndDispatch(item, dequeuedCallback); }
public void EnqueueAndDispatch(T item, ItemDequeuedCallback dequeuedCallback, bool canDispatchOnThisThread) { EnqueueAndDispatch(new Item(item, dequeuedCallback), canDispatchOnThisThread); }
public ExItem(T data, ItemDequeuedCallback callback) : this(data, null, callback) { }
public bool EnqueueWithoutDispatch(Exception exception, ItemDequeuedCallback dequeuedCallback) { return(EnqueueWithoutDispatch(new Item(exception, dequeuedCallback))); }
public ExItem(Exception ex, ItemDequeuedCallback callback) : this(null, ex, callback) { }
static void OnInvokeDequeuedCallback(object state) { ItemDequeuedCallback dequeuedCallback = (ItemDequeuedCallback)state; dequeuedCallback(); }
public ExItem(T data, Exception ex, ItemDequeuedCallback callback) { this._Data = data; this._Exception = ex; this._Callback = callback; }
public Item(Exception exception, ItemDequeuedCallback dequeuedCallback) : this(null, exception, dequeuedCallback) { }
public void EnqueueAndDispatch(Exception exception, ItemDequeuedCallback dequeuedCallback, bool canDispatchOnThisThread) { Debug.Assert(exception != null, "exception parameter should not be null"); EnqueueAndDispatch(new Item(exception, dequeuedCallback), canDispatchOnThisThread); }
Item(T value, Exception exception, ItemDequeuedCallback dequeuedCallback) { _value = value; _exception = exception; _dequeuedCallback = dequeuedCallback; }