diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-26 18:02:02 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-11-26 18:02:02 +0200 |
| commit | d3b9770dd5e1d34e9433a115cbed5ef1a53546f6 (patch) | |
| tree | 0c3a48ae71edc947956c10fea8a411ad80564f34 /Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication | |
| parent | 6fb22273d15ed476ccbd3820de6af9bc0deee793 (diff) | |
| download | Tango-d3b9770dd5e1d34e9433a115cbed5ef1a53546f6.tar.gz Tango-d3b9770dd5e1d34e9433a115cbed5ef1a53546f6.zip | |
Working on PPC event notifications.
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication')
| -rw-r--r-- | Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs | 9 |
1 files changed, 8 insertions, 1 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 4021d89ef..957a4ee1d 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.UI/PPCApplication/DefaultPPCApplicationManager.cs @@ -24,6 +24,8 @@ using System.Data.SqlClient; using Tango.BL.Builders; using Tango.PPC.Common.Threading; using System.Diagnostics; +using Tango.PPC.Common.EventLogging; +using Tango.BL.Enumerations; namespace Tango.PPC.UI.PPCApplication { @@ -38,6 +40,7 @@ namespace Tango.PPC.UI.PPCApplication private IMachineProvider _machineProvider; private Machine _machine; private IDispatcherProvider _dispatcher; + private IEventLogger _eventLogger; /// <summary> /// Occurs when the application has started. @@ -99,10 +102,12 @@ namespace Tango.PPC.UI.PPCApplication /// <summary> /// Initializes a new instance of the <see cref="DefaultPPCApplicationManager"/> class. /// </summary> - public DefaultPPCApplicationManager(IMachineProvider machineProvider, IDispatcherProvider dispatcherProvider) + public DefaultPPCApplicationManager(IMachineProvider machineProvider, IDispatcherProvider dispatcherProvider, IEventLogger eventLogger) { _machineProvider = machineProvider; _dispatcher = dispatcherProvider; + _eventLogger = eventLogger; + ; if (!DesignMode) { @@ -166,6 +171,8 @@ namespace Tango.PPC.UI.PPCApplication _machine = new MachineBuilder(ObservablesContext.CreateDefault()).SetFirst().WithOrganization().WithConfiguration().Build(); } + _eventLogger.Log(EventTypes.ApplicationStarted, "Application Started!"); + initialized = true; } catch (Exception ex) |
