Exemple #1
0
 public CoconaCommandDispatcher(
     IServiceProvider serviceProvider,
     ICoconaCommandLineArgumentProvider commandLineArgumentProvider,
     ICoconaCommandResolver commandResolver,
     ICoconaCommandDispatcherPipelineBuilder dispatcherPipelineBuilder,
     ICoconaInstanceActivator activator,
     ICoconaAppContextAccessor appContext
     )
 {
     _serviceProvider             = serviceProvider;
     _commandLineArgumentProvider = commandLineArgumentProvider;
     _commandResolver             = commandResolver;
     _dispatcherPipelineBuilder   = dispatcherPipelineBuilder;
     _activator  = activator;
     _appContext = appContext;
 }
Exemple #2
0
 public CoconaCommandDispatcher(
     IServiceProvider serviceProvider,
     ICoconaCommandProvider commandProvider,
     ICoconaCommandLineParser commandLineParser,
     ICoconaCommandLineArgumentProvider commandLineArgumentProvider,
     ICoconaCommandDispatcherPipelineBuilder dispatcherPipelineBuilder,
     ICoconaCommandMatcher commandMatcher,
     ICoconaInstanceActivator activator
     )
 {
     _serviceProvider             = serviceProvider;
     _commandProvider             = commandProvider;
     _commandLineParser           = commandLineParser;
     _commandLineArgumentProvider = commandLineArgumentProvider;
     _dispatcherPipelineBuilder   = dispatcherPipelineBuilder;
     _commandMatcher = commandMatcher;
     _activator      = activator;
 }
Exemple #3
0
 public CoconaCompletionCandidatesProviderFactory(IServiceProvider serviceProvider, ICoconaInstanceActivator activator)
 {
     _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     _activator       = activator ?? throw new ArgumentNullException(nameof(activator));
 }