/// <summary> /// Handles the MessagingService.UnhandledException event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="Sage.Integration.Messaging.DiagnosesExceptionEventArgs"/> instance containing the event data.</param> private static void MessagingServiceOnUnhandledException(object sender, DiagnosesExceptionEventArgs e) { if (e == null) { return; } if (e.Exception == null) { return; } try { ErrorHelper.LogMessagingServiceException(e.Exception, ErrorHelper.GetCurrentHttpRequest(), Log); } catch (Exception ex) { Log.Error("There was an error in MessagingServiceOnUnhandledException()", ex); } }
/// <summary> /// Handles the MessagingService.UnhandledException event. /// </summary> /// <param name="sender">The sender.</param> /// <param name="e">The <see cref="Sage.Integration.Messaging.DiagnosesExceptionEventArgs"/> instance containing the event data.</param> private static void MessagingServiceOnUnhandledException(object sender, DiagnosesExceptionEventArgs e) { if (e == null) return; if (e.Exception == null) return; try { ErrorHelper.LogMessagingServiceException(e.Exception, ErrorHelper.GetCurrentHttpRequest(), Log); } catch (Exception ex) { Log.Error("There was an error in MessagingServiceOnUnhandledException()", ex); } }