Пример #1
0
 void UnhandledExceptionFrame(uint error, uint bytesRead, NativeOverlapped *nativeOverlapped)
 {
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         this.callback(error, bytesRead, nativeOverlapped);
     }
     catch (Exception exception)
     {
         if (!Fx.HandleAtThreadBase(exception))
         {
             throw;
         }
     }
 }
Пример #2
0
 void UnhandledExceptionFrame(object state)
 {
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         Callback(state);
     }
     catch (Exception exception)
     {
         if (!Fx.HandleAtThreadBase(exception))
         {
             throw;
         }
     }
 }
Пример #3
0
 void UnhandledExceptionFrame(IAsyncResult result)
 {
     RuntimeHelpers.PrepareConstrainedRegions();
     try
     {
         Callback(result);
     }
     catch (Exception exception)
     {
         if (!Fx.HandleAtThreadBase(exception))
         {
             throw;
         }
     }
 }