public static CommandArguments CreateFrom(string commandLine) { if (commandLine == null || commandLine.Trim().Equals("")) return null; var arguments = new CommandArguments(commandLine); arguments.ParseCommandLine(); return arguments; }
public ICommand Build(object actor, CommandInfo commandInfo, CommandArguments arguments) { return Activator.CreateInstance(commandInfo.CommandType, actor, arguments, services) as ICommand; }