WebHostBuilderExtensions Class
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.
Contains extensions for configuring the IWebHostBuilder instance.
public ref class WebHostBuilderExtensions abstract sealed
public static class WebHostBuilderExtensions
type WebHostBuilderExtensions = class
Public Module WebHostBuilderExtensions
- Inheritance
-
WebHostBuilderExtensions
Methods
ConfigureTestContainer<TContainer>(IWebHostBuilder, Action<TContainer>) |
Configures the IWebHostBuilder instance with the services provided in |
ConfigureTestServices(IWebHostBuilder, Action<IServiceCollection>) |
Configures the IWebHostBuilder instance with the services provided in |
GetTestClient(IWebHost) |
Retrieves the test client from the TestServer in the host services. |
GetTestServer(IWebHost) |
Retrieves the TestServer from the host services. |
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String, String) |
Sets the content root of relative to the |
UseSolutionRelativeContentRoot(IWebHostBuilder, String, String) |
Sets the content root of relative to the |
UseTestServer(IWebHostBuilder, Action<TestServerOptions>) |
Enables the TestServer service. |
UseTestServer(IWebHostBuilder) |
Enables the TestServer service. |