示例#1
0
文件: Fx.cs 项目: imcarolwang/CoreWCF
 void UnhandledExceptionFrame(uint error, uint bytesRead, NativeOverlapped *nativeOverlapped)
 {
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         callback(error, bytesRead, nativeOverlapped);
     }
     catch (Exception exception)
     {
         if (!Fx.HandleAtThreadBase(exception))
         {
             throw;
         }
     }
 }
示例#2
0
文件: Fx.cs 项目: imcarolwang/CoreWCF
 void UnhandledExceptionFrame(T1 param1)
 {
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         Callback(param1);
     }
     catch (Exception exception)
     {
         if (!Fx.HandleAtThreadBase(exception))
         {
             throw;
         }
     }
 }
示例#3
0
文件: Fx.cs 项目: imcarolwang/CoreWCF
 void UnhandledExceptionFrame(IAsyncResult result)
 {
     // PrepareConstrainedRegions are in .net standard 1.7+
     //RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         Callback(result);
     }
     catch (Exception exception)
     {
         if (!Fx.HandleAtThreadBase(exception))
         {
             throw;
         }
     }
 }