다음을 통해 공유


WebHostBuilderExtensions.ConfigureTestContainer<TContainer> 메서드

정의

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

public:
generic <typename TContainer>
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ ConfigureTestContainer(Microsoft::AspNetCore::Hosting::IWebHostBuilder ^ webHostBuilder, Action<TContainer> ^ servicesConfiguration);
public static Microsoft.AspNetCore.Hosting.IWebHostBuilder ConfigureTestContainer<TContainer> (this Microsoft.AspNetCore.Hosting.IWebHostBuilder webHostBuilder, Action<TContainer> servicesConfiguration);
static member ConfigureTestContainer : Microsoft.AspNetCore.Hosting.IWebHostBuilder * Action<'Container> -> Microsoft.AspNetCore.Hosting.IWebHostBuilder
<Extension()>
Public Function ConfigureTestContainer(Of TContainer) (webHostBuilder As IWebHostBuilder, servicesConfiguration As Action(Of TContainer)) As IWebHostBuilder

형식 매개 변수

TContainer

서비스 설명자의 컬렉션입니다.

매개 변수

servicesConfiguration
Action<TContainer>

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

반환

적용 대상