aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/PPC/Tango.PPC.Common/ExternalBridge/PPCExternalBridgeService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/ExternalBridge/PPCExternalBridgeService.cs')
-rw-r--r--Software/Visual_Studio/PPC/Tango.PPC.Common/ExternalBridge/PPCExternalBridgeService.cs27
1 files changed, 27 insertions, 0 deletions
diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/ExternalBridge/PPCExternalBridgeService.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/ExternalBridge/PPCExternalBridgeService.cs
new file mode 100644
index 000000000..338015b8b
--- /dev/null
+++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/ExternalBridge/PPCExternalBridgeService.cs
@@ -0,0 +1,27 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using Tango.BL.Entities;
+using Tango.Integration.ExternalBridge;
+using Tango.Integration.Operation;
+using Tango.PPC.Common.Application;
+using Tango.PPC.Common.Connection;
+using Tango.Settings;
+
+namespace Tango.PPC.Common.ExternalBridge
+{
+ public class PPCExternalBridgeService : ExternalBridgeService, IPPCExternalBridgeService
+ {
+ public PPCExternalBridgeService(IPPCApplicationManager applicationManager, IMachineProvider machineProvider)
+ {
+ applicationManager.Ready += (_, __) =>
+ {
+ MachineOperator = machineProvider.MachineOperator;
+ Machine = machineProvider.Machine;
+ Enabled = SettingsManager.Default.GetOrCreate<PPCSettings>().EnableExternalBridgeService;
+ };
+ }
+ }
+}