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

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

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

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