HostBuilderTestServerExtensions.GetTestServer(IHost) 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 TestServer from the host services.
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
Parameters
- host
- IHost