diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-26 14:21:53 +0300 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-03-26 14:21:53 +0300 |
| commit | 1061758f95b7ba633e6bcc2c3556b42f033b1a79 (patch) | |
| tree | c3cf106aa6b73fe1e0bfcd6b88399a5721990eb0 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication | |
| parent | 761686de34252d76bda126c738d82c021ef6bf5d (diff) | |
| download | Tango-1061758f95b7ba633e6bcc2c3556b42f033b1a79.tar.gz Tango-1061758f95b7ba633e6bcc2c3556b42f033b1a79.zip | |
Working on logging module !
Modified PID Control Table.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/StudioApplication')
| -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); |
