public CommandServiceProvider(ILogger <T> logger, ICommandExecutor executor, ICommandLineMapper mapper) { Logger = logger; Executor = executor; Mapper = mapper; CommandId = CommandHelper.GetCommandId(typeof(T)); }
public CommandLineExecutor ( [NotNull] ILogger <CommandLineExecutor> logger, [NotNull] ICommandLineParser commandLineParser, [NotNull] ICommandLineMapper mapper, [NotNull] IIndex <Identifier, IConsoleCommand> commands, [NotNull] ExecuteExceptionCallback executeExceptionCallback ) { _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _commandLineParser = commandLineParser ?? throw new ArgumentNullException(nameof(commandLineParser)); _mapper = mapper ?? throw new ArgumentNullException(nameof(mapper)); _commands = commands ?? throw new ArgumentNullException(nameof(commands)); _executeExceptionCallback = executeExceptionCallback; }
public CommandServiceProvider(ILogger <T> logger, ICommandLineExecutor executor, ICommandLineMapper mapper) { Logger = logger; Executor = executor; Mapper = mapper; }