Added labels to scada,

Remove network card monitor
This commit is contained in:
Lucio Maranta
2019-01-21 09:29:03 +01:00
parent 6d25dcc55e
commit d9a22655b8
10 changed files with 61 additions and 184 deletions
-9
View File
@@ -32,16 +32,9 @@ namespace Step.Core
private volatile static List<Thread> RunningThreadsList = new List<Thread>();
internal volatile static Dictionary<string, string> RunningThreadStatus = new Dictionary<string, string>();
private static Thread MonitorNetworkResources;
public static void Start()
{
ThreadsFunctions.RestoreConnection();
// Start Thread Network monitor
Action Monitor = new Action(ThreadsFunctions.MonitorPanelPCResources);
MonitorNetworkResources = new Thread(() => Monitor());
MonitorNetworkResources.Start();
}
public static void StartWorkers()
@@ -85,8 +78,6 @@ namespace Step.Core
RunningThreadStatus.Clear();
RunningThreadStatus.Add("TryNcConnection", "---");
}
// Close network monitor
MonitorNetworkResources.Abort();
MessageServices.Current.Publish(SEND_THREADS_STATUS, null, RunningThreadStatus);
}