aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs13
1 files changed, 13 insertions, 0 deletions
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 f980d9c22..2cc03891b 100644
--- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs
+++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs
@@ -41,6 +41,7 @@ using Tango.PPC.UI.ViewsContracts;
using Tango.PPC.Common.Build;
using Tango.Core.Components;
using static Tango.Core.Components.CmdCommand;
+using Tango.PPC.Common.Telemetry;
namespace Tango.PPC.UI.PPCApplication
{
@@ -799,6 +800,17 @@ namespace Tango.PPC.UI.PPCApplication
try
{
+ LogManager.Log("Disposing telemetry services...");
+ var telemetryProvider = TangoIOC.Default.GetInstance<ITelemetryProvider>();
+ telemetryProvider?.Dispose();
+ }
+ catch (Exception ex)
+ {
+ LogManager.Log(ex, "Error disposing telemetry services.");
+ }
+
+ try
+ {
LogManager.Log("Disposing insights manager (max 40 seconds to complete)...");
Stopwatch watch = new Stopwatch();
watch.Start();
@@ -812,6 +824,7 @@ namespace Tango.PPC.UI.PPCApplication
{
LogManager.Log(ex, "Error disposing insights manager.");
}
+
}, TimeSpan.FromSeconds(40));
}
}