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; }
private void OnUnhandledException(object sender, UnhandledExceptionEventArgs e) { crashManager.HandleException((Exception)e.ExceptionObject); }