Udostępnij za pośrednictwem


WebHostBuilderExtensions.GetTestClient(IWebHost) Metoda

Definicja

Pobiera klienta testowego z serwera TestServer w usługach hosta.

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

Parametry

host
IWebHost

Zwraca

Dotyczy