WebHostBuilderExtensions.GetTestClient(IWebHost) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Retrieves the test client from the TestServer in the host services.
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
Parameters
- host
- IWebHost