Пример #1
0
 public Startup(
     IEventAggregator events,
     ICaptureEngine captureEngine,
     CrashManager crashManager)
 {
     this.events        = events;
     this.captureEngine = captureEngine;
     captureEngine.UnhandledException += (s, e) => crashManager.HandleException(e.ExceptionObject as Exception);
     Application.Current.Exit         += CurrentOnExit;
 }
Пример #2
0
 private void OnUnhandledException(object sender, UnhandledExceptionEventArgs e)
 {
     crashManager.HandleException((Exception)e.ExceptionObject);
 }