private static void InvokeActions(string ids, ControlAction action)
 {
     var actions = ids
         .Split(new[] { ',' }, StringSplitOptions.RemoveEmptyEntries)
         .Select(id => new InvokeAction(new Guid(id), action)).ToArray();
     ClientPort.Tell(actions);
 }
 public GroupingSearcher(
     InvokeAction[] invokeActions, ControlAction controlAction,
     QueueControlConfiguration controlConfiguration, Action<string> logWarning)
 {
     InvokeActions = invokeActions;
     ControlAction = controlAction;
     ControlConfiguration = controlConfiguration;
     LogWarning = logWarning;
 }
Example #3
0
 public QueueItem(QueueControl control, ControlAction action)
 {
     Control = control;
     Action = action;
 }
Example #4
0
 // ReSharper disable once MemberCanBePrivate.Global - public access makes it easier to invoke actions when you have stored a list of supported actions
 public InvokeAction(Guid deviceId, ControlAction action)
 {
     Action = action;
     DeviceId = deviceId;
 }
 public CommandBuilder(ControlAction action)
 {
     Action = action;
 }
Example #6
0
 protected bool Equals(ControlAction other)
 {
     return string.Equals(Name, other.Name, StringComparison.CurrentCultureIgnoreCase);
 }
 public ActionToBeQueued(QueueControl control, ControlAction action)
 {
     Control = control;
     Action = action;
 }