예제 #1
0
 protected CommandRegistrations(
     List <ICommand> registeredCommands,
     ICommand targetCommand,
     ICommandServiceProvider commandServiceProvider,
     ICommandMethodFactoryService methodFactoryService)
 {
     this.registeredCommands     = registeredCommands;
     this.targetCommand          = targetCommand;
     this.commandServiceProvider = commandServiceProvider;
     this.methodFactoryService   = methodFactoryService;
 }
예제 #2
0
 protected SimpleCommand([NotNull] ICommandServiceProvider serviceProvider, Identifier id)
     : base(serviceProvider, id)
 {
 }
예제 #3
0
 protected ConsoleCommand([NotNull] ICommandServiceProvider serviceProvider, [CanBeNull] Identifier id = default)
 {
     _serviceProvider = serviceProvider ?? throw new ArgumentNullException(nameof(serviceProvider));
     Id = id ?? serviceProvider.DefaultId;
 }
예제 #4
0
 public CommandRegistrations(ICommandServiceProvider commandServiceProvider, ICommandMethodFactoryService methodFactoryService)
     : this(new List <ICommand>(), null, commandServiceProvider, methodFactoryService)
 {
 }
예제 #5
0
 public CommandContext(ICommandServiceProvider commandServiceProvider, ICommandDataStore dataStore)
 {
     this.commandServiceProvider = commandServiceProvider;
     DataStore = dataStore;
 }