HostBuilderTestServerExtensions.GetTestServer(IHost) 方法

定义

从主机服务检索 TestServer。

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

参数

host
IHost

返回

适用于