다음을 통해 공유


WebHostBuilderExtensions.GetTestServer(IWebHost) 메서드

정의

호스트 서비스에서 TestServer를 검색합니다.

public:
[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::TestHost::TestServer ^ GetTestServer(Microsoft::AspNetCore::Hosting::IWebHost ^ host);
public static Microsoft.AspNetCore.TestHost.TestServer GetTestServer (this Microsoft.AspNetCore.Hosting.IWebHost host);
static member GetTestServer : Microsoft.AspNetCore.Hosting.IWebHost -> Microsoft.AspNetCore.TestHost.TestServer
<Extension()>
Public Function GetTestServer (host As IWebHost) As TestServer

매개 변수

host
IWebHost

반환

적용 대상