ConfigureHostBuilder 클래스

정의

IHostBuilder에 대 한 비 빌드 가능한 WebApplicationBuilder 입니다. 를 사용 Build() 하 여를 빌드합니다 WebApplicationBuilder .

public sealed class ConfigureHostBuilder : Microsoft.AspNetCore.Hosting.Infrastructure.ISupportsConfigureWebHost, Microsoft.Extensions.Hosting.IHostBuilder
type ConfigureHostBuilder = class
    interface IHostBuilder
    interface ISupportsConfigureWebHost
Public NotInheritable Class ConfigureHostBuilder
Implements IHostBuilder, ISupportsConfigureWebHost
상속
ConfigureHostBuilder
구현

속성

Properties

A central location for sharing state between components during the host building process.

메서드

ConfigureAppConfiguration(Action<HostBuilderContext,IConfigurationBuilder>)

Sets up the configuration for the remainder of the build process and application. This can be called multiple times and the results will be additive. The results will be available at Configuration for subsequent operations, as well as in Services.

ConfigureContainer<TContainerBuilder>(Action<HostBuilderContext,TContainerBuilder>)

Enables configuring the instantiated dependency container. This can be called multiple times and the results will be additive.

ConfigureHostConfiguration(Action<IConfigurationBuilder>)

Set up the configuration for the builder itself. This will be used to initialize the IHostEnvironment for use later in the build process. This can be called multiple times and the results will be additive.

ConfigureServices(Action<HostBuilderContext,IServiceCollection>)

Adds services to the container. This can be called multiple times and the results will be additive.

UseServiceProviderFactory<TContainerBuilder>(Func<HostBuilderContext,IServiceProviderFactory<TContainerBuilder>>)

Overrides the factory used to create the service provider.

UseServiceProviderFactory<TContainerBuilder>(IServiceProviderFactory<TContainerBuilder>)

Overrides the factory used to create the service provider.

명시적 인터페이스 구현

IHostBuilder.Build()
ISupportsConfigureWebHost.ConfigureWebHost(Action<IWebHostBuilder>, Action<WebHostBuilderOptions>)

적용 대상