Example #1
0
        public GroupCommand Get(IGroupCommand command)
        {
            if (command.Parallel)
            {
                return(GroupCommand.Parallel(command));
            }
            else
            {
                return(GroupCommand.Sequential(command));
            }

            throw new ArgumentException();
        }
Example #2
0
        public static GroupCommand Parallel(IGroupCommand group)
        {
            var cmd = new GroupCommand(group.Commands, true);

            return(cmd);
        }
Example #3
0
        public static GroupCommand Sequential(IGroupCommand group)
        {
            var cmd = new GroupCommand(group.Commands, false);

            return(cmd);
        }
Example #4
0
 public static GroupCommand Sequential(IGroupCommand group)
 {
     var cmd = new GroupCommand(group.Commands, false);
     return cmd;
 }
Example #5
0
 public static GroupCommand Parallel(IGroupCommand group)
 {
     var cmd = new GroupCommand(group.Commands, true);
     return cmd;
 }