void DoBurnerOff(object sender, EventArgs e) { Log.Information($"Fsm;OilBurner;DoBurnerOff"); var oilBurnerSwitch = StateService.GetActor(ActorName.OilBurnerSwitch); SerialCommunicationService.SetActorAsync(oilBurnerSwitch.Name, 0).Wait(); }
async void DoBurnerOff(object sender, EventArgs e) { var oilBurnerSwitch = StateService.GetActor(ItemEnum.OilBurnerSwitch); await SerialCommunicationService.SetActorAsync(oilBurnerSwitch.ItemEnum.ToString(), 0); }