public async void RunServices() { log.Debug($"Started servers: {RGOServiceBase.AllServers.Count.ToString()}"); double counter = 0; while (true) { if (ServiceCycleCounter >= ServiceCycleInterval) { ServiceCycleCounter = 0; RGOServiceStarter.Run(); for (int i = 10000; i < 10000 + 100; i++) { (RGOBase.AllRGO[$"{i}0"] as SV <double>).Value = counter; } counter += 0.1; } else { ServiceCycleCounter++; } await Task.Delay(1); } }
public void StartServices() { //create RGO objects for testing CreateRGO(200); //Start the Services RGOServiceStarter.ConnStateChanged = ConnStateChanged; RGOServiceStarter.StartServices(basePortNr: 45010); }