BetterExplorer.App.Current_DispatcherUnhandledException C# (CSharp) Method

Current_DispatcherUnhandledException() private method

Handle all exceptions from current dispatcher
private Current_DispatcherUnhandledException ( Object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e ) : void
sender Object Who send the exception
e System.Windows.Threading.DispatcherUnhandledExceptionEventArgs the args
return void
    private void Current_DispatcherUnhandledException(Object sender, DispatcherUnhandledExceptionEventArgs e) {
      var lastException = e.Exception;
      var logger = NLog.LogManager.GetCurrentClassLogger();
      logger.Fatal(lastException);

      e.Handled = true;
    }