次の方法で共有


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

戻り値

適用対象