public void CheckExceptionReference() { Exception ex = new Exception(); UnhandledExceptionOccurredEventArgs args = new UnhandledExceptionOccurredEventArgs(ex); Assert.AreSame(ex, args.Exception); }
private void OnUnhandledExceptionOccurred(object sender, UnhandledExceptionOccurredEventArgs args) { lock (AppCenterLock) { if (_channelGroup != null) { AppCenterLog.Debug(AppCenterLog.LogTag, "Shutting down channel group due to unhandled exception."); _channelGroup.ShutdownAsync(); _channelGroup = null; } } }
private static void OnUnhandledExceptionOccurred(object sender, UnhandledExceptionOccurredEventArgs args) { var errorLog = ErrorLogHelper.CreateErrorLog(args.Exception); ErrorLogHelper.SaveErrorLogFiles(args.Exception, errorLog); }
private void OnUnhandledExceptionOccurred(object sender, UnhandledExceptionOccurredEventArgs args) { // Make sure that all storage operations are complete. _channelGroup?.WaitStorageOperationsAsync().GetAwaiter().GetResult(); }