protected override void OnExit(ExitEventArgs e) { AppHelper.NotifyIcon?.Dispose(); NTMinerRoot.Current.Exit(); HttpServer.Stop(); if (NTMinerRegistry.GetIsAutoCloseServices()) { Server.ControlCenterService.CloseServices(); } base.OnExit(e); }
protected override void OnExit(ExitEventArgs e) { AppContext.NotifyIcon?.Dispose(); NTMinerRoot.Instance.Exit(); HttpServer.Stop(); if (createdNew && NTMinerRegistry.GetIsAutoCloseServices()) { Server.ControlCenterService.CloseServices(); } base.OnExit(e); ConsoleManager.Hide(); }