示例#1
0
        protected override void DoWork()
        {
            Log.Information($"Turning relay {_relayA.AssetId} on.");
            _relayA.TurnRelayOn();

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