Example #1
0
 public CommandExecutor(
     ILogger <CommandExecutor> logger,
     CommandMiddlewareProvider middlewareProvider,
     ICommandResultExecutorFactory resultExecutorFactory)
 {
     _logger                = logger;
     _middlewareProvider    = middlewareProvider;
     _resultExecutorFactory = resultExecutorFactory;
 }
        public CommandsBuilder(CommandMiddlewareProvider middlewareProvider,
                               IServiceCollection services)
        {
            if (services is null)
            {
                throw new ArgumentNullException(nameof(services));
            }

            Services = services;

            _middlewareProvider = middlewareProvider;
        }