private static void ACSQuery() { foreach (ControllerListSource cls in IODataCollection.queryList.Where(c => c.name.StartsWith("ACS-"))) { string queryStr = ACSQueryUtilities.GenACSSimQueryStr(cls.IOList); acsu.BeginTransaction(cls.name, queryStr, new AsyncCallback(OnTransaction), acsu); RunningTransaction.Add(cls.name); } }
// not in use, use acs's as master // private static void StatThreadIODataUpdate() // { // IODataUpdateThread = new Thread(IODataUpdate); // IODataUpdateThread.IsBackground = true; // IODataUpdateThread.Start(); // } private static void LSQuery() { foreach (ControllerListSource cls in IODataCollection.queryList.Where(c => c.name.StartsWith(ControllerNames.LS + '-'))) { Thread t = new Thread(() => { Update(cls.name, cls.IOList); }); t.IsBackground = true; t.Start(); RunningTransaction.Add(cls.name); } }