다음을 통해 공유


WebHostBuilderExtensions.ConfigureTestServices 메서드

정의

에 제공된 IWebHostBuilderservicesConfiguration서비스를 사용하여 instance 구성합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureTestServices(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ webHostBuilder, Action<Microsoft::Extensions::DependencyInjection::IServiceCollection ^> ^ servicesConfiguration);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureTestServices (this Microsoft.AspNetCore.Hosting.IWebHostBuilder webHostBuilder, Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> servicesConfiguration);
static member ConfigureTestServices : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<Microsoft.Extensions.DependencyInjection.IServiceCollection> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureTestServices (webHostBuilder As IWebHostBuilder, servicesConfiguration As Action(Of IServiceCollection)) As IWebHostBuilder

매개 변수

servicesConfiguration
Action<IServiceCollection>

Action 에 서비스를 등록하는 입니다IServiceCollection.

반환

IWebHostBuilder

적용 대상