public GroupCommand Get(IGroupCommand command) { if (command.Parallel) { return(GroupCommand.Parallel(command)); } else { return(GroupCommand.Sequential(command)); } throw new ArgumentException(); }
public static GroupCommand Parallel(IGroupCommand group) { var cmd = new GroupCommand(group.Commands, true); return(cmd); }
public static GroupCommand Sequential(IGroupCommand group) { var cmd = new GroupCommand(group.Commands, false); return(cmd); }
public static GroupCommand Sequential(IGroupCommand group) { var cmd = new GroupCommand(group.Commands, false); return cmd; }
public static GroupCommand Parallel(IGroupCommand group) { var cmd = new GroupCommand(group.Commands, true); return cmd; }