private void AppDomainUnhandledException(object sender, UnhandledExceptionEventArgs e) { // TODO: Check correct exception handling try { Logger.LogException(e.ExceptionObject as Exception); TaskboardService.HandleConnectionException(e.ExceptionObject as Exception); } catch (Exception ex) { Logger.LogException(ex); } }
private void HandleException(object sender, DispatcherUnhandledExceptionEventArgs e) { try { Logger.LogException(e.Exception); if (TaskboardService.HandleConnectionException(e.Exception)) { e.Handled = true; } } catch (Exception ex) { Logger.LogException(ex); } }