Пример #1
0
 public static void On (this OutputEndpoint outputEndpoint, IRule rule)
 {
     if (outputEndpoint.CurrentState is Off)
     {
         rule.FireWithInput(outputEndpoint);
     }
 }
Пример #2
0
 public static void OnOrOff (this Light outputEndpoint, IRule rule)
 {
     rule.FireWithInput(outputEndpoint);
 }