protected override void OnExit(ExitEventArgs e) { ServiceMonitor.StopAll(); var result = EngineService.Default.AppClosed(); base.OnExit(e); }
private void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e) { if (e.ExceptionObject is Exception) { Logger.Singleton.Error(((Exception)e.ExceptionObject).Message); } ServiceMonitor.StopAll(); var result = EngineService.Default.AppClosed(); }
void OnClosing(Window window) { ServiceMonitor.StopAll(); if (!NodeMonitor.Default.Set_NetIsActive) { NetWorkService.Default.SetNetworkActive(true); System.Threading.Thread.Sleep(1000); } while (NodeMonitor.Default.PortInUse() || NodeMonitor.Default.PortInUse_TCP()) { var result = EngineService.Default.AppClosed(); System.Threading.Thread.Sleep(500); } Environment.Exit(1); }
private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e) { Logger.Singleton.Error(e.Exception.Message); ServiceMonitor.StopAll(); var result = EngineService.Default.AppClosed(); }
private void Current_Exit(object sender, ExitEventArgs e) { ServiceMonitor.StopAll(); var result = EngineService.Default.AppClosed(); }