internal ConsoleApplicationBootstrapper(IDependancyContainerFactory dependancyContainerFactory, ICommandConfigurationRegistry commandConfigurationRegistry, IConsoleApplicationFactory consoleApplicationFactory, DependancyConfiguration defaultDependancyConfiguration, CommandRegistration defaultCommandRegistration, ApplicationConfiguration applicationConfiguration) { _dependancyContainerFactory = dependancyContainerFactory; _commandConfigurationRegistry = commandConfigurationRegistry; _consoleApplicationFactory = consoleApplicationFactory; _userDefinedDependancyConfigurations.Add(defaultDependancyConfiguration); _userDefinedCommandRegistrations.Add(defaultCommandRegistration); _applicationConfiguration = applicationConfiguration; }
public ConsoleApplicationBootstrapper RegisterCommands(CommandRegistration commandRegistration) { _userDefinedCommandRegistrations.Add(commandRegistration); return this; }