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;
 }
示例#3
0
 public QueueItem(QueueControl control, ControlAction action)
 {
     Control = control;
     Action = action;
 }
示例#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;
 }
示例#5
0
 public CommandBuilder(ControlAction action)
 {
     Action = action;
 }
示例#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;
 }