Added redis-Setup for Alarms
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user