示例#1
0
文件: Fx.cs 项目: imcarolwang/CoreWCF
 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;
 }
示例#3
0
文件: Fx.cs 项目: imcarolwang/CoreWCF
 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);
 }