protected override void DoWork() { Log.Information($"Turning relay {_relayA.AssetId} on."); _relayA.TurnRelayOn(); Log.Information($"Turning relay {_relayB.AssetId} on."); _relayB.TurnRelayOn(); }
protected override void DoWork() { Log.Information("Turning relay {Relay} on", Name); _driver.TurnRelayOn(); }