public static IOCompletionCallback ThunkCallback(IOCompletionCallback callback) { Fx.Assert(callback != null, "Trying to create a ThunkCallback with a null callback method"); return((new IOCompletionThunk(callback)).ThunkFrame); }
public static Exception AssertAndThrowFatal(string description) { Fx.Assert(description); //TraceCore.ShipAssertExceptionMessage(Trace, description); throw new FatalInternalException(description); }
public InputQueue(Func <Action <AsyncCallback, IAsyncResult> > asyncCallbackGenerator) : this() { Fx.Assert(asyncCallbackGenerator != null, "use default ctor if you don't have a generator"); AsyncCallbackGenerator = asyncCallbackGenerator; }
public bool EnqueueWithoutDispatch(Exception exception, Action dequeuedCallback) { Fx.Assert(exception != null, "EnqueueWithoutDispatch: exception parameter should not be null"); return(EnqueueWithoutDispatch(new Item(exception, dequeuedCallback))); }
public bool EnqueueWithoutDispatch(T item, Action dequeuedCallback) { Fx.Assert(item != null, "EnqueueWithoutDispatch: item parameter should not be null"); return(EnqueueWithoutDispatch(new Item(item, dequeuedCallback))); }
public void EnqueueAndDispatch(T item, Action dequeuedCallback, bool canDispatchOnThisThread) { Fx.Assert(item != null, "EnqueueAndDispatch: item parameter should not be null"); EnqueueAndDispatch(new Item(item, dequeuedCallback), canDispatchOnThisThread); }
public void EnqueueAndDispatch(Exception exception, Action dequeuedCallback, bool canDispatchOnThisThread) { Fx.Assert(exception != null, "EnqueueAndDispatch: exception parameter should not be null"); EnqueueAndDispatch(new Item(exception, dequeuedCallback), canDispatchOnThisThread); }