diff options
| author | Shlomo Hecht <shlomo@twine-s.com> | 2018-03-28 14:34:58 +0300 |
|---|---|---|
| committer | Shlomo Hecht <shlomo@twine-s.com> | 2018-03-28 14:34:58 +0300 |
| commit | 08bd4400dfd45245ae301b5cb28103322ddf865a (patch) | |
| tree | 6cc7caf742e00e5746fe20401857fdc569b922a7 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs | |
| parent | bfbdac5a071e7aea068e6f4acd796e83e73cf970 (diff) | |
| parent | 953fc4deb9d94a63afe07d66ccf78ff42f54c3bb (diff) | |
| download | Tango-08bd4400dfd45245ae301b5cb28103322ddf865a.tar.gz Tango-08bd4400dfd45245ae301b5cb28103322ddf865a.zip | |
SystemReset request
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs index b4b1c5153..52602e6de 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication/DefaultStudioApplicationManager.cs @@ -18,6 +18,8 @@ using Tango.MachineStudio.Common; using Tango.Settings; using System.Windows; using Tango.Integration.Services; +using Tango.MachineStudio.Common.EventLogging; +using Tango.BL.Enumerations; namespace Tango.MachineStudio.UI.StudioApplication { @@ -189,6 +191,13 @@ namespace Tango.MachineStudio.UI.StudioApplication LogManager.Log(ex, "Error disconnecting from machine."); } + var eventLogger = ServiceLocator.Current.GetInstance<IEventLogger>(); + if (eventLogger != null) + { + eventLogger.Log(EventTypes.ApplicationTerminated, "Application Terminated!"); + eventLogger.FlushAll(); + } + Thread.Sleep(1500); Environment.Exit(0); |
