Esempio n. 1
0
        public static CommandArguments CreateFrom(string commandLine)
        {
            if (commandLine == null || commandLine.Trim().Equals(""))
                return null;

            var arguments = new CommandArguments(commandLine);

            arguments.ParseCommandLine();

            return arguments;
        }
Esempio n. 2
0
 public ICommand Build(object actor, CommandInfo commandInfo, CommandArguments arguments)
 {
     return Activator.CreateInstance(commandInfo.CommandType, actor, arguments, services) as ICommand;
 }