From a1d55aa060450b0a16b597794686b2aa41eea259 Mon Sep 17 00:00:00 2001 From: Roy Ben Shabat Date: Sat, 30 Aug 2025 22:05:03 +0300 Subject: PPC Telemetry First Integration. --- .../PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs | 3 +++ .../Visual_Studio/PPC/Tango.PPC.Common/Connection/IMachineProvider.cs | 3 +++ 2 files changed, 6 insertions(+) (limited to 'Software/Visual_Studio/PPC/Tango.PPC.Common/Connection') diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs index 695d71b4b..872523bd0 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/DefaultMachineProvider.cs @@ -46,6 +46,7 @@ namespace Tango.PPC.Common.Connection /// Occurs when the machine has disconnected. /// public event EventHandler MachineDisconnected; + public event EventHandler Initialized; private bool _isConnected; /// @@ -345,6 +346,8 @@ namespace Tango.PPC.Common.Connection MachineOperator.JobRunsLogger.SetDefaultMachine(Machine); + Initialized?.Invoke(this, Machine); + ConnectToMachine(); } else diff --git a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/IMachineProvider.cs b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/IMachineProvider.cs index 774fa7c9e..52ab2620b 100644 --- a/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/IMachineProvider.cs +++ b/Software/Visual_Studio/PPC/Tango.PPC.Common/Connection/IMachineProvider.cs @@ -25,6 +25,9 @@ namespace Tango.PPC.Common.Connection /// event EventHandler MachineDisconnected; + + event EventHandler Initialized; + /// /// Gets a value indicating whether the machine is currently connected. /// -- cgit v1.3.1