void UnhandledExceptionFrame(uint error, uint bytesRead, NativeOverlapped *nativeOverlapped) { RuntimeHelpers.PrepareConstrainedRegions(); try { callback(error, bytesRead, nativeOverlapped); } catch (Exception exception) { if (!Fx.HandleAtThreadBase(exception)) { throw; } } }
void UnhandledExceptionFrame(T1 param1) { RuntimeHelpers.PrepareConstrainedRegions(); try { Callback(param1); } catch (Exception exception) { if (!Fx.HandleAtThreadBase(exception)) { throw; } } }
void UnhandledExceptionFrame(IAsyncResult result) { // PrepareConstrainedRegions are in .net standard 1.7+ //RuntimeHelpers.PrepareConstrainedRegions(); try { Callback(result); } catch (Exception exception) { if (!Fx.HandleAtThreadBase(exception)) { throw; } } }