Beispiel #1
0
        public CommandsHandler(ICommandMessageCleaner cleaner, ICommandParser commandParser, ICommandArgumentsParser argumentsParser, ICommandsLoader commandsLoader,
                               ICommandMethodExecuter methodExecuter, ICommandMethodsParser methodParser, ICommandsConfiguration configuration, IWrongUsageHandler wrongUsageHandler)
        {
            _cleaner           = cleaner;
            _commandParser     = commandParser;
            _argumentsParser   = argumentsParser;
            _methodExecuter    = methodExecuter;
            _methodParser      = methodParser;
            _configuration     = configuration;
            _commandsLoader    = commandsLoader;
            _wrongUsageHandler = wrongUsageHandler;

            Instance = this;
        }
Beispiel #2
0
 public MessageCleaner(ICommandsConfiguration configuration)
 => _configuration = configuration;
Beispiel #3
0
 public WrongUsageHandler(ICommandsConfiguration configuration)
 {
     _configuration = configuration;
 }
Beispiel #4
0
 public MethodExecuter(ICommandArgumentsParser argumentsParser, ICommandsConfiguration configuration, IWrongUsageHandler wrongUsageHandler)
 => (_argumentsParser, _configuration, _wrongUsageHandler) = (argumentsParser, configuration, wrongUsageHandler);