public static void On (this OutputEndpoint outputEndpoint, IRule rule) { if (outputEndpoint.CurrentState is Off) { rule.FireWithInput(outputEndpoint); } }
public static void OnOrOff (this Light outputEndpoint, IRule rule) { rule.FireWithInput(outputEndpoint); }