コード例 #1
0
		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;
		}
コード例 #2
0
		public ConsoleApplicationBootstrapper ConfigureDependancies(DependancyConfiguration dependancyConfiguration)
		{
			_userDefinedDependancyConfigurations.Add(dependancyConfiguration);

			return this;
		}