Ejemplo n.º 1
0
        public GroupCommand Get(IGroupCommand command)
        {
            if (command.Parallel)
            {
                return(GroupCommand.Parallel(command));
            }
            else
            {
                return(GroupCommand.Sequential(command));
            }

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

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

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