다음을 통해 공유


HostingHostBuilderExtensions.ConfigureServices 메서드

정의

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

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::Extensions::Hosting::IHostBuilder ^ ConfigureServices(Microsoft::Extensions::Hosting::IHostBuilder ^ hostBuilder, Action<Microsoft::Extensions::DependencyInjection::IServiceCollection ^> ^ configureDelegate);
public static Microsoft.Extensions.Hosting.IHostBuilder ConfigureServices (this Microsoft.Extensions.Hosting.IHostBuilder hostBuilder, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> configureDelegate);
static member ConfigureServices : Microsoft.Extensions.Hosting.IHostBuilder * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.Extensions.Hosting.IHostBuilder
<Extension()>
Public Function ConfigureServices (hostBuilder As IHostBuilder, configureDelegate As Action(Of IServiceCollection)) As IHostBuilder

매개 변수

hostBuilder
IHostBuilder

구성할 IHostBuilder입니다.

configureDelegate
Action<IServiceCollection>

IServiceCollection을 구성하는 대리자입니다.

반환

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

적용 대상