Partager via


HostBuilderTestServerExtensions.GetTestClient(IHost) Méthode

Définition

Récupère le client de test à partir de TestServer dans les services hôtes.

public:
[System::Runtime::CompilerServices::Extension]
 static System::Net::Http::HttpClient ^ GetTestClient(Microsoft::Extensions::Hosting::IHost ^ host);
public static System.Net.Http.HttpClient GetTestClient (this Microsoft.Extensions.Hosting.IHost host);
static member GetTestClient : Microsoft.Extensions.Hosting.IHost -> System.Net.Http.HttpClient
<Extension()>
Public Function GetTestClient (host As IHost) As HttpClient

Paramètres

host
IHost

Retours

S’applique à