4 implementations of IWebHostBuilder
Microsoft.AspNetCore (1)
Microsoft.AspNetCore.Hosting (3)
348 references to IWebHostBuilder
Microsoft.AspNetCore (26)
Microsoft.AspNetCore.AzureAppServices.HostingStartup (1)
Microsoft.AspNetCore.AzureAppServicesIntegration (2)
Microsoft.AspNetCore.Components.Testing (1)
Microsoft.AspNetCore.Hosting (106)
GenericHostWebHostBuilderExtensions.cs (12)
18/// <param name="builder">The <see cref="IHostBuilder"/> to add the <see cref="IWebHostBuilder"/> to.</param>
19/// <param name="configure">The delegate that configures the <see cref="IWebHostBuilder"/>.</param>
21public static IHostBuilder ConfigureWebHost(this IHostBuilder builder, Action<IWebHostBuilder> configure)
31/// <param name="builder">The <see cref="IHostBuilder"/> to add the <see cref="IWebHostBuilder"/> to.</param>
32/// <param name="configure">The delegate that configures the <see cref="IWebHostBuilder"/>.</param>
35public static IHostBuilder ConfigureWebHost(this IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureWebHostBuilder)
47/// <param name="builder">The <see cref="IHostBuilder"/> to add the <see cref="IWebHostBuilder"/> to.</param>
48/// <param name="configure">The delegate that configures the <see cref="IWebHostBuilder"/>.</param>
51public static IHostBuilder ConfigureSlimWebHost(this IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureWebHostBuilder)
62Func<IHostBuilder, WebHostBuilderOptions, IWebHostBuilder> createWebHostBuilder,
63Action<IWebHostBuilder> configure,
77var webhostBuilder = createWebHostBuilder(builder, webHostBuilderOptions);
WebHostBuilderExtensions.cs (46)
21/// Contains extensions for configuring an <see cref="IWebHostBuilder" />.
28/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
30/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
31public static IWebHostBuilder Configure(this IWebHostBuilder hostBuilder, Action<IApplicationBuilder> configureApp)
57/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
59/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
60public static IWebHostBuilder Configure(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, IApplicationBuilder> configureApp)
86/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
88/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
90public static IWebHostBuilder UseStartup<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] TStartup>(this IWebHostBuilder hostBuilder, Func<WebHostBuilderContext, TStartup> startupFactory) where TStartup : class
130/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
132/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
133public static IWebHostBuilder UseStartup(this IWebHostBuilder hostBuilder, [DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] Type startupType)
168/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
170/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
171public static IWebHostBuilder UseStartup<[DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] TStartup>(this IWebHostBuilder hostBuilder) where TStartup : class
179/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
181/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
182public static IWebHostBuilder UseDefaultServiceProvider(this IWebHostBuilder hostBuilder, Action<ServiceProviderOptions> configure)
190/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
192/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
193public static IWebHostBuilder UseDefaultServiceProvider(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, ServiceProviderOptions> configure)
212/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
214/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
217/// The <see cref="IConfigurationBuilder"/> is pre-populated with the settings of the <see cref="IWebHostBuilder"/>.
219public static IWebHostBuilder ConfigureAppConfiguration(this IWebHostBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate)
227/// <param name="hostBuilder">The <see cref="IWebHostBuilder" /> to configure.</param>
229/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
230public static IWebHostBuilder ConfigureLogging(this IWebHostBuilder hostBuilder, Action<ILoggingBuilder> configureLogging)
238/// <param name="hostBuilder">The <see cref="IWebHostBuilder" /> to configure.</param>
240/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
241public static IWebHostBuilder ConfigureLogging(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, ILoggingBuilder> configureLogging)
250/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param>
251/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
252public static IWebHostBuilder UseStaticWebAssets(this IWebHostBuilder builder)
Microsoft.AspNetCore.Hosting.Abstractions (62)
HostingAbstractionsWebHostBuilderExtensions.cs (50)
14/// Contains extension methods for configuring the <see cref="IWebHostBuilder" />.
21/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
23/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
24public static IWebHostBuilder UseConfiguration(this IWebHostBuilder hostBuilder, IConfiguration configuration)
38/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
40/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
41public static IWebHostBuilder CaptureStartupErrors(this IWebHostBuilder hostBuilder, bool captureStartupErrors)
49/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
51/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
53public static IWebHostBuilder UseStartup(this IWebHostBuilder hostBuilder, string startupAssemblyName)
65/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
67/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
68public static IWebHostBuilder UseServer(this IWebHostBuilder hostBuilder, IServer server)
83/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
85/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
86public static IWebHostBuilder UseEnvironment(this IWebHostBuilder hostBuilder, string environment)
96/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
98/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
99public static IWebHostBuilder UseContentRoot(this IWebHostBuilder hostBuilder, string contentRoot)
109/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
111/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
112public static IWebHostBuilder UseWebRoot(this IWebHostBuilder hostBuilder, string webRoot)
122/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
124/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
125public static IWebHostBuilder UseUrls(this IWebHostBuilder hostBuilder, [StringSyntax(StringSyntaxAttribute.Uri)] params string[] urls)
133/// Indicate whether the host should listen on the URLs configured on the <see cref="IWebHostBuilder"/>
136/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
137/// <param name="preferHostingUrls"><c>true</c> to prefer URLs configured on the <see cref="IWebHostBuilder"/>; otherwise <c>false</c>.</param>
138/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
139public static IWebHostBuilder PreferHostingUrls(this IWebHostBuilder hostBuilder, bool preferHostingUrls)
147/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
149/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
150public static IWebHostBuilder SuppressStatusMessages(this IWebHostBuilder hostBuilder, bool suppressStatusMessages)
158/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param>
160/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
161public static IWebHostBuilder UseShutdownTimeout(this IWebHostBuilder hostBuilder, TimeSpan timeout)
169/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to start.</param>
171/// <returns>The <see cref="IWebHostBuilder"/>.</returns>
173public static IWebHost Start(this IWebHostBuilder hostBuilder, [StringSyntax(StringSyntaxAttribute.Uri)] params string[] urls)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
Microsoft.AspNetCore.Mvc.Testing (34)
Microsoft.AspNetCore.Server.HttpSys (6)
Microsoft.AspNetCore.Server.IIS (4)
Microsoft.AspNetCore.Server.IISIntegration (4)
Microsoft.AspNetCore.Server.Kestrel (20)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (9)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (9)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (5)
Microsoft.AspNetCore.SpaProxy (1)
Microsoft.AspNetCore.TestHost (47)
Microsoft.AspNetCore.Testing (9)
Microsoft.AspNetCore.Watch.BrowserRefresh (1)