Esempio n. 1
0
 public BuiltInCommandMiddleware(CommandDispatchDelegate next, ICoconaHelpRenderer helpRenderer, ICoconaCommandHelpProvider commandHelpProvider, ICoconaCommandProvider commandProvider, ICoconaConsoleProvider console)
     : base(next)
 {
     _helpRenderer        = helpRenderer;
     _commandHelpProvider = commandHelpProvider;
     _commandProvider     = commandProvider;
     _console             = console;
 }
Esempio n. 2
0
 public BuiltInCommandMiddleware(CommandDispatchDelegate next, ICoconaHelpRenderer helpRenderer, ICoconaCommandHelpProvider commandHelpProvider, ICoconaCommandProvider commandProvider, ICoconaConsoleProvider console, ICoconaAppContextAccessor appContext)
     : base(next)
 {
     _helpRenderer        = helpRenderer;
     _commandHelpProvider = commandHelpProvider;
     _commandProvider     = commandProvider;
     _console             = console;
     _appContext          = appContext;
 }
Esempio n. 3
0
 protected CommandDispatcherMiddleware(CommandDispatchDelegate next)
 {
     Next = next;
 }
 public InitializeConsoleAppMiddleware(CommandDispatchDelegate next, ICoconaAppContextAccessor appContext, ILoggerFactory loggerFactory) : base(next)
 {
     _appContext    = appContext ?? throw new ArgumentNullException(nameof(appContext));
     _loggerFactory = loggerFactory ?? throw new ArgumentNullException(nameof(loggerFactory));
 }
Esempio n. 5
0
 public CommandFilterMiddleware(CommandDispatchDelegate next, IServiceProvider serviceProvider)
     : base(next)
 {
     _serviceProvider = serviceProvider;
 }
 public RejectUnknownOptionsMiddleware(CommandDispatchDelegate next, ICoconaConsoleProvider console) : base(next)
 {
     _console = console;
 }
Esempio n. 7
0
 public HandleParameterBindExceptionMiddleware(CommandDispatchDelegate next, ICoconaConsoleProvider console) : base(next)
 {
     _console = console;
 }
 public CoconaCommandInvokeMiddleware(CommandDispatchDelegate next, ICoconaParameterBinder parameterBinder)
     : base(next)
 {
     _parameterBinder = parameterBinder;
 }
Esempio n. 9
0
 public Test4Middleware(CommandDispatchDelegate next, List <string> logger)
     : base(next, logger)
 {
 }
Esempio n. 10
0
 public Test2Middleware(CommandDispatchDelegate next, List <string> logger)
     : base(next)
 {
     _logger = logger;
 }