From 02a4a4e4b632274a67768fc566b5e593ccac4f72 Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Tue, 30 Jul 2024 06:57:08 -0400 Subject: [PATCH 01/50] if the tunneler goes down, it's notifying clients, not the monitor service --- ZitiUpdateService/UpdateService.cs | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/ZitiUpdateService/UpdateService.cs b/ZitiUpdateService/UpdateService.cs index 9a675818d..36b8a6709 100644 --- a/ZitiUpdateService/UpdateService.cs +++ b/ZitiUpdateService/UpdateService.cs @@ -1009,16 +1009,6 @@ private void Svc_OnClientDisconnected(object sender, object e) { if (svc.CleanShutdown) { //then this is fine and expected - the service is shutting down Logger.Info("client disconnected due to clean service shutdown"); - - MonitorServiceStatusEvent status = new MonitorServiceStatusEvent() { - Code = 0, - Error = "SERVICE DOWN", - Message = "SERVICE DOWN", - Status = ServiceActions.ServiceStatus(), - AutomaticUpgradeDisabled = CurrentSettings.AutomaticUpdatesDisabled.ToString(), - AutomaticUpgradeURL = CurrentSettings.AutomaticUpdateURL, - }; - EventRegistry.SendEventToConsumers(status); } else { Logger.Error("SERVICE IS DOWN and did not exit cleanly."); From 4c4721d81744307f7f200b5c1328c41e6162eddc Mon Sep 17 00:00:00 2001 From: dovholuknf <46322585+dovholuknf@users.noreply.github.com> Date: Tue, 30 Jul 2024 07:00:34 -0400 Subject: [PATCH 02/50] if the service crashes unexpectedly, issue a toast --- DesktopEdge/MainWindow.xaml | 2 +- DesktopEdge/MainWindow.xaml.cs | 31 +++++++++++++- setup-mfa-test.ps1 | 75 +++++++++++++++++++++++++++++----- 3 files changed, 94 insertions(+), 14 deletions(-) diff --git a/DesktopEdge/MainWindow.xaml b/DesktopEdge/MainWindow.xaml index 1ea9e90a5..2995ddfdc 100644 --- a/DesktopEdge/MainWindow.xaml +++ b/DesktopEdge/MainWindow.xaml @@ -182,7 +182,7 @@ - +