Example #1
0
 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;
 }
Example #3
0
 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);
 }