コード例 #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;
         }
     }
 }