void ServiceConfig() { if (configAdapter.IsUpdateNeeded) { configAdapter.Update(); } }
public override void UpdateInputs() { if (configAdapter.IsUpdateNeeded) { configAdapter.Update(); } inputAdapter.Update(); }
protected override void PerformMainLoopService() { base.PerformMainLoopService(); if (configAccessAdapter.IsUpdateNeeded) { configAccessAdapter.Update(); privateState.Config.IDSize = configAccessAdapter.ValueSet.IDSize; privateState.Config.IDStartOffset = configAccessAdapter.ValueSet.IDStartOffset; privateState.Config.Mode = configAccessAdapter.ValueSet.Mode; privateState.UpdateCounterPostfix(); PublishPrivateState(); } if (counterIsEnabledIVA.IsUpdateNeeded || tagIsPresentIVA.IsUpdateNeeded) { privateState.CounterIsEnabled = counterIsEnabledIVA.Update().VC.GetValue <bool>(false); privateState.TagIsPresent = tagIsPresentIVA.Update().VC.GetValue <bool>(false); PublishPrivateState(); } if (isOnlineIVA.IsUpdateNeeded) { if (isOnlineIVA.Update().VC.GetValue <bool>(false)) { PerformGoOnlineAction(false); } else { PerformGoOfflineAction(); } } }