WebHostBuilderExtensions WebHostBuilderExtensions WebHostBuilderExtensions Class

Definition

public static class WebHostBuilderExtensions
type WebHostBuilderExtensions = class
Public Module WebHostBuilderExtensions
Inheritance
WebHostBuilderExtensionsWebHostBuilderExtensionsWebHostBuilderExtensions

Methods

Configure(IWebHostBuilder, Action<IApplicationBuilder>) Configure(IWebHostBuilder, Action<IApplicationBuilder>) Configure(IWebHostBuilder, Action<IApplicationBuilder>)

Specify the startup method to be used to configure the web application.

ConfigureAppConfiguration(IWebHostBuilder, Action<IConfigurationBuilder>) ConfigureAppConfiguration(IWebHostBuilder, Action<IConfigurationBuilder>) ConfigureAppConfiguration(IWebHostBuilder, Action<IConfigurationBuilder>)

Adds a delegate for configuring the IConfigurationBuilder that will construct an IConfiguration.

ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<WebHostBuilderContext,ILoggingBuilder>)

Adds a delegate for configuring the provided LoggerFactory. This may be called multiple times.

ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>) ConfigureLogging(IWebHostBuilder, Action<ILoggingBuilder>)

Adds a delegate for configuring the provided ILoggingBuilder. This may be called multiple times.

UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>) UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>) UseDefaultServiceProvider(IWebHostBuilder, Action<WebHostBuilderContext,ServiceProviderOptions>)

Configures the default service provider

UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>) UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>) UseDefaultServiceProvider(IWebHostBuilder, Action<ServiceProviderOptions>)

Configures the default service provider

UseStartup(IWebHostBuilder, Type) UseStartup(IWebHostBuilder, Type) UseStartup(IWebHostBuilder, Type)

Specify the startup type to be used by the web host.

UseStartup<TStartup>(IWebHostBuilder) UseStartup<TStartup>(IWebHostBuilder) UseStartup<TStartup>(IWebHostBuilder)

Specify the startup type to be used by the web host.

Applies to