Partager via


WebHostBuilderExtensions.GetTestServer(IWebHost) Méthode

Définition

Récupère le Serveur de test à partir des services hôtes.

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

Paramètres

host
IWebHost

Retours

S’applique à