private CommandRegistration(Type commandType) { CommandType = commandType; CommandName = NameFactory.CreateCommandName(commandType); _parameters = GetParameters(commandType).ToList(); CommandParameterValidator.ValidateParameterNamesUniqueness(this); }
protected ConsoleCommand(ILoggerFactory loggerFactory) { var longestName = NameFactory.CreateCommandName(GetType()).OrderByDescending(name => name.Length).First(); Logger = loggerFactory.CreateLogger(longestName); }