private static void Run() { _app = new workspacer(); #if !DEBUG Thread.GetDomain().UnhandledException += ((s, e) => { if (!(e.ExceptionObject is ThreadAbortException)) { _logger.Fatal((Exception)e.ExceptionObject, "exception occurred, quiting workspacer: " + ((Exception)e.ExceptionObject).ToString()); _app.QuitWithException((Exception)e.ExceptionObject); } }); #endif _app.Start(); }
private static int Run() { _app = new workspacer(); #if !DEBUG Thread.GetDomain().UnhandledException += ((s, e) => { if (!(e.ExceptionObject is ThreadAbortException)) { Logger.Fatal(e.ExceptionObject as Exception, "exception occurred, quiting workspacer: " + (e.ExceptionObject as Exception).ToString()); _app.QuitWithException(e.ExceptionObject as Exception); } }); #endif _app.Start(); return(0); }
private static void Run() { _app = new workspacer(); #if !DEBUG System.Threading.Thread.GetDomain().UnhandledException += (s, e) => { if (e.ExceptionObject is System.Threading.ThreadAbortException) { return; } _logger.Fatal((Exception)e.ExceptionObject, "exception occurred, quitting workspacer: " + (Exception)e.ExceptionObject); _app.QuitWithException((Exception)e.ExceptionObject); }; #endif _app.Start(); }