Пример #1
0
        protected override void OnExit(ExitEventArgs e)
        {
            ServiceMonitor.StopAll();
            var result = EngineService.Default.AppClosed();

            base.OnExit(e);
        }
Пример #2
0
        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();
        }
Пример #3
0
        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);
        }
Пример #4
0
 private void Current_DispatcherUnhandledException(object sender, System.Windows.Threading.DispatcherUnhandledExceptionEventArgs e)
 {
     Logger.Singleton.Error(e.Exception.Message);
     ServiceMonitor.StopAll();
     var result = EngineService.Default.AppClosed();
 }
Пример #5
0
 private void Current_Exit(object sender, ExitEventArgs e)
 {
     ServiceMonitor.StopAll();
     var result = EngineService.Default.AppClosed();
 }