Share via


WebHostBuilderExtensions Class

Definition

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 servicesConfiguration.

ConfigureTestServices(IWebHostBuilder, Action<IServiceCollection>)

Configures the IWebHostBuilder instance with the services provided in servicesConfiguration.

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 solutionRelativePath.

UseSolutionRelativeContentRoot(IWebHostBuilder, String, String)

Sets the content root of relative to the solutionRelativePath.

UseTestServer(IWebHostBuilder, Action<TestServerOptions>)

Enables the TestServer service.

UseTestServer(IWebHostBuilder)

Enables the TestServer service.

Applies to