From 7d9ab3b87aed944167d77244b00fbdd4224725e2 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Thu, 14 Nov 2024 14:30:42 +0200 Subject: Added support for SMS notifications on TS & X4. --- .../PPCApplication/DefaultPPCApplicationManager.cs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs index 0f65f833e..ca20fe608 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs @@ -39,6 +39,8 @@ using System.Threading; using System.Reflection; using Tango.PPC.UI.ViewsContracts; using Tango.PPC.Common.Build; +using Tango.Core.Components; +using static Tango.Core.Components.CmdCommand; namespace Tango.PPC.UI.PPCApplication { @@ -265,6 +267,22 @@ namespace Tango.PPC.UI.PPCApplication { _watchdogServer.Start(); } + + Task.Factory.StartNew(async () => + { + try + { + LogManager.Log("Disabling Proxy..."); + CmdCommand cmd = null; + CmdCommandResult result = null; + cmd = new CmdCommand("taskkill", "/F /IM proxifier.exe"); + result = await cmd.Run(); + } + catch (Exception ex) + { + LogManager.Log(ex, $"Unable to disable the proxy.\n{ex.Message}"); + } + }); #endif LogManager.Log("Reading Core settings..."); -- cgit v1.3.1