public static Exception AssertAndThrowFatal(string description) { Fx.Assert(description); //TraceCore.ShipAssertExceptionMessage(Trace, description); throw new FatalInternalException(description); }
public void SetCompletionCallback(Action <object> callback, object state) { _timerFiredCallback = Fx.ThunkCallback(callback); _timerFiredState = state; }
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); }