Added redis-Setup for Alarms

This commit is contained in:
Nicola Carminati
2019-08-28 11:57:05 +02:00
parent c06d77904a
commit 5d2544a2ae
4 changed files with 145 additions and 17 deletions
+9
View File
@@ -29,6 +29,7 @@ namespace Step.Core
ThreadsFunctions.ReadM154Data
// ThreadsFunctions.ReadNcSoftKeysData,
};
private static Action ThreadSetupCmsConnect = ThreadsFunctions.SetupCmsConnect;
private volatile static List<Thread> RunningThreadsList = new List<Thread>();
public static Thread StartClient;
@@ -38,6 +39,14 @@ namespace Step.Core
public static void Start()
{
ThreadsFunctions.RestoreConnection();
//Setup CMS Connect
if(Config.ServerConfig.CmsConnectConfig.Enabled)
{
Thread t = new Thread(() => ThreadSetupCmsConnect());
t.Start();
}
}
public static void StartWorkers()