다음을 통해 공유


HostBuilder.ConfigureServices 메서드

정의

컨테이너에 서비스를 추가합니다. 여러 번 호출할 수 있으며 결과는 누적됩니다.

public:
 virtual Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureServices(Action<Microsoft::Extensions::Hosting::HostBuilderContext ^, Microsoft::Extensions::DependencyInjection::IServiceCollection ^> ^ configureDelegate);
public Microsoft.Extensions.Hosting.IHostBuilder ConfigureServices (Action<Microsoft.Extensions.Hosting.HostBuilderContext,Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate);
abstract member ConfigureServices : Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.Extensions.Hosting.IHostBuilder
override this.ConfigureServices : Action<Microsoft.Extensions.Hosting.HostBuilderContext, Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.Extensions.Hosting.IHostBuilder
Public Function ConfigureServices (configureDelegate As Action(Of HostBuilderContext, IServiceCollection)) As IHostBuilder

매개 변수

configureDelegate
Action<HostBuilderContext,IServiceCollection>

호스트의 IConfiguration을 구성하는 데 사용할 IConfigurationBuilder를 구성하는 대리자입니다.

반환

연결을 위한 IHostBuilder의 동일한 인스턴스입니다.

구현

적용 대상