다음을 통해 공유


WebHostBuilderExtensions.GetTestClient(IWebHost) 메서드

정의

호스트 서비스의 TestServer에서 테스트 클라이언트를 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Net::Http::HttpClient ^ GetTestClient(Microsoft::AspNetCore::Hosting::IWebHost ^ host);
public static System.Net.Http.HttpClient GetTestClient (this Microsoft.AspNetCore.Hosting.IWebHost host);
static member GetTestClient : Microsoft.AspNetCore.Hosting.IWebHost -> System.Net.Http.HttpClient
<Extension()>
Public Function GetTestClient (host As IWebHost) As HttpClient

매개 변수

host
IWebHost

반환

적용 대상