コード例 #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
ファイル: ConsoleCommand.cs プロジェクト: wkfff/reusable
 protected SimpleCommand([NotNull] ICommandServiceProvider serviceProvider, Identifier id)
     : base(serviceProvider, id)
 {
 }
コード例 #3
0
ファイル: ConsoleCommand.cs プロジェクト: wkfff/reusable
 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;
 }