Udostępnij za pośrednictwem


HostBuilderTestServerExtensions.GetTestServer(IHost) Metoda

Definicja

Pobiera serwer TestServer z usług hosta.

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

Parametry

host
IHost

Zwraca

Dotyczy