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