4 implementations of IWebHostBuilder
Microsoft.AspNetCore (1)
ConfigureWebHostBuilder.cs (1)
16public sealed class ConfigureWebHostBuilder : IWebHostBuilder, ISupportsStartup
Microsoft.AspNetCore.Hosting (3)
GenericHost\HostingStartupWebHostBuilder.cs (1)
15internal sealed class HostingStartupWebHostBuilder : IWebHostBuilder, ISupportsStartup, ISupportsUseDefaultServiceProvider
GenericHost\WebHostBuilderBase.cs (1)
10internal abstract class WebHostBuilderBase : IWebHostBuilder, ISupportsUseDefaultServiceProvider
WebHostBuilder.cs (1)
25public class WebHostBuilder : IWebHostBuilder
348 references to IWebHostBuilder
Microsoft.AspNetCore (26)
ConfigureHostBuilder.cs (1)
117IHostBuilder ISupportsConfigureWebHost.ConfigureWebHost(Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureOptions)
ConfigureWebHostBuilder.cs (10)
13/// A non-buildable <see cref="IWebHostBuilder"/> for <see cref="WebApplicationBuilder"/>. 32IWebHost IWebHostBuilder.Build() 39public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate) 90public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) 98public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 110public IWebHostBuilder UseSetting(string key, string? value) 168IWebHostBuilder ISupportsStartup.Configure(Action<IApplicationBuilder> configure) 173IWebHostBuilder ISupportsStartup.Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure) 178IWebHostBuilder ISupportsStartup.UseStartup([DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] Type startupType) 183IWebHostBuilder ISupportsStartup.UseStartup<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] TStartup>(Func<WebHostBuilderContext, TStartup> startupFactory)
GenericHostBuilderExtensions.cs (2)
32public static IHostBuilder ConfigureWebHostDefaults(this IHostBuilder builder, Action<IWebHostBuilder> configure) 58public static IHostBuilder ConfigureWebHostDefaults(this IHostBuilder builder, Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureOptions)
WebApplicationBuilder.cs (2)
244private void InitializeWebHostSettings(IWebHostBuilder webHostBuilder) 380/// An <see cref="IWebHostBuilder"/> for configuring server specific properties, but not building.
WebHost.cs (11)
25/// Provides convenience methods for creating instances of <see cref="IWebHost"/> and <see cref="IWebHostBuilder"/> with pre-configured defaults. 95var builder = CreateDefaultBuilder(); 136/// <returns>The initialized <see cref="IWebHostBuilder"/>.</returns> 137public static IWebHostBuilder CreateDefaultBuilder() => 158/// <returns>The initialized <see cref="IWebHostBuilder"/>.</returns> 159public static IWebHostBuilder CreateDefaultBuilder(string[] args) 223internal static void ConfigureWebDefaults(IWebHostBuilder builder) 245internal static void ConfigureWebDefaultsSlim(IWebHostBuilder builder) 255private static void ConfigureWebDefaultsWorker(IWebHostBuilder builder, Action<IServiceCollection>? configureRouting) 311/// <returns>The initialized <see cref="IWebHostBuilder"/>.</returns> 312public static IWebHostBuilder CreateDefaultBuilder<[DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] TStartup>(string[] args) where TStartup : class =>
Microsoft.AspNetCore.AzureAppServices.HostingStartup (1)
AzureAppServicesHostingStartup.cs (1)
22public void Configure(IWebHostBuilder builder)
Microsoft.AspNetCore.AzureAppServicesIntegration (2)
AppServicesWebHostBuilderExtensions.cs (2)
18public static IWebHostBuilder UseAzureAppServices(this IWebHostBuilder hostBuilder)
Microsoft.AspNetCore.Components.Testing (1)
Infrastructure\TestReadinessHostingStartup.cs (1)
32public void Configure(IWebHostBuilder builder)
Microsoft.AspNetCore.Hosting (106)
GenericHost\GenericWebHostBuilder.cs (4)
166public IWebHostBuilder UseStartup([DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] Type startupType) 191public IWebHostBuilder UseStartup<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] TStartup>(Func<WebHostBuilderContext, TStartup> startupFactory) 316public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 341public IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure)
GenericHost\HostingStartupWebHostBuilder.cs (10)
29throw new NotSupportedException($"Building this implementation of {nameof(IWebHostBuilder)} is not supported."); 33public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate) 39public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 44public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) 52public IWebHostBuilder UseSetting(string key, string? value) 68public IWebHostBuilder UseDefaultServiceProvider(Action<WebHostBuilderContext, ServiceProviderOptions> configure) 73public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 78public IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure) 83public IWebHostBuilder UseStartup([DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] Type startupType) 90public IWebHostBuilder UseStartup<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] TStartup>(Func<WebHostBuilderContext, TStartup> startupFactory)
GenericHost\ISupportsUseDefaultServiceProvider.cs (1)
10IWebHostBuilder UseDefaultServiceProvider(Action<WebHostBuilderContext, ServiceProviderOptions> configure);
GenericHost\SlimWebHostBuilder.cs (4)
62public IWebHostBuilder Configure(Action<IApplicationBuilder> configure) 67public IWebHostBuilder UseStartup([DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicConstructors | DynamicallyAccessedMemberTypes.PublicMethods)] Type startupType) 72public IWebHostBuilder UseStartup<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] TStartup>(Func<WebHostBuilderContext, TStartup> startupFactory) 77public IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure)
GenericHost\WebHostBuilderBase.cs (6)
32throw new NotSupportedException($"Building this implementation of {nameof(IWebHostBuilder)} is not supported."); 36public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate) 47public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 52public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) 63public IWebHostBuilder UseDefaultServiceProvider(Action<WebHostBuilderContext, ServiceProviderOptions> configure) 104public IWebHostBuilder UseSetting(string key, string? value)
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);
Infrastructure\ISupportsConfigureWebHost.cs (3)
9/// An interface implemented by IWebHostBuilders that handle <see cref="GenericHostWebHostBuilderExtensions.ConfigureWebHost(IHostBuilder, Action{IWebHostBuilder})"/> 17/// <param name="configure">The delegate that configures the <see cref="IWebHostBuilder"/>.</param> 20IHostBuilder ConfigureWebHost(Action<IWebHostBuilder> configure, Action<WebHostBuilderOptions> configureOptions);
Infrastructure\ISupportsStartup.cs (11)
11/// An interface implemented by IWebHostBuilders that handle <see cref="WebHostBuilderExtensions.Configure(IWebHostBuilder, Action{IApplicationBuilder})"/>, 12/// <see cref="WebHostBuilderExtensions.UseStartup(IWebHostBuilder, Type)"/> and <see cref="WebHostBuilderExtensions.UseStartup{TStartup}(IWebHostBuilder, Func{WebHostBuilderContext, TStartup})"/> 21/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 22IWebHostBuilder Configure(Action<IApplicationBuilder> configure); 28/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 29IWebHostBuilder Configure(Action<WebHostBuilderContext, IApplicationBuilder> configure); 35/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 36IWebHostBuilder UseStartup([DynamicallyAccessedMembers(StartupLinkerOptions.Accessibility)] Type startupType); 42/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 44IWebHostBuilder UseStartup<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.PublicMethods)] TStartup>(Func<WebHostBuilderContext, TStartup> startupFactory);
WebHostBuilder.cs (9)
81/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 82public IWebHostBuilder UseSetting(string key, string? value) 93/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 94public IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices) 106/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 107public IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices) 117/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 120/// The <see cref="IConfigurationBuilder"/> is pre-populated with the settings of the <see cref="IWebHostBuilder"/>. 122public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate)
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)
IHostingStartup.cs (3)
7/// Represents platform specific configuration that will be applied to a <see cref="IWebHostBuilder"/> when building an <see cref="IWebHost"/>. 12/// Configure the <see cref="IWebHostBuilder"/>. 18void Configure(IWebHostBuilder builder);
IWebHostBuilder.cs (9)
26/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 29/// The <see cref="IConfigurationBuilder"/> is pre-populated with the settings of the <see cref="IWebHostBuilder"/>. 31IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate); 38/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 39IWebHostBuilder ConfigureServices(Action<IServiceCollection> configureServices); 46/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 47IWebHostBuilder ConfigureServices(Action<WebHostBuilderContext, IServiceCollection> configureServices); 61/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 62IWebHostBuilder UseSetting(string key, string? value);
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
RazorRuntimeCompilationHostingStartup.cs (1)
11public void Configure(IWebHostBuilder builder)
Microsoft.AspNetCore.Mvc.Testing (34)
WebApplicationFactory.cs (34)
39private Action<IWebHostBuilder> _configuration; 126/// by further customizing the <see cref="IWebHostBuilder"/> when calling 127/// <see cref="WebApplicationFactory{TEntryPoint}.WithWebHostBuilder(Action{IWebHostBuilder})"/>. 137/// Creates a new <see cref="WebApplicationFactory{TEntryPoint}"/> with a <see cref="IWebHostBuilder"/> 141/// An <see cref="Action{IWebHostBuilder}"/> to configure the <see cref="IWebHostBuilder"/>. 144public WebApplicationFactory<TEntryPoint> WithWebHostBuilder(Action<IWebHostBuilder> configuration) => 147internal virtual WebApplicationFactory<TEntryPoint> WithWebHostBuilderCore(Action<IWebHostBuilder> configuration) 213private IWebHost CreateKestrelServer(IWebHostBuilder builder) 240private void ConfigureBuilderToUseKestrel(IWebHostBuilder builder) 292var builder = CreateWebHostBuilder(); 346nameof(IWebHostBuilder), 415private void SetContentRoot(IWebHostBuilder builder) 481private static bool SetContentRootFromSetting(IWebHostBuilder builder) 599/// Creates a <see cref="IWebHostBuilder"/> used to set up <see cref="TestServer"/>. 606/// <returns>A <see cref="IWebHostBuilder"/> instance.</returns> 607protected virtual IWebHostBuilder? CreateWebHostBuilder() 609var builder = WebHostBuilderFactory.CreateFromTypesAssemblyEntryPoint<TEntryPoint>(Array.Empty<string>()); 621/// This is only called for applications using <see cref="IWebHostBuilder"/>. Applications based on 624/// <param name="builder">The <see cref="IWebHostBuilder"/> used to 628protected virtual TestServer CreateServer(IWebHostBuilder builder) => new(builder); 633/// <see cref="IWebHostBuilder"/> will use <see cref="CreateHost"/> instead. 651/// <see cref="IWebHostBuilder"/> will use <see cref="CreateServer(IWebHostBuilder)"/> instead. 672/// <param name="builder">The <see cref="IWebHostBuilder"/> for the application.</param> 673protected virtual void ConfigureWebHost(IWebHostBuilder builder) 894private readonly Func<IWebHostBuilder, TestServer> _createServer; 897private readonly Func<IWebHostBuilder?> _createWebHostBuilder; 904Func<IWebHostBuilder, TestServer> createServer, 907Func<IWebHostBuilder?> createWebHostBuilder, 911Action<IWebHostBuilder> configureWebHost) 925protected override TestServer CreateServer(IWebHostBuilder builder) => _createServer(builder); 931protected override IWebHostBuilder? CreateWebHostBuilder() => _createWebHostBuilder(); 937protected override void ConfigureWebHost(IWebHostBuilder builder) => _configuration(builder); 941internal override WebApplicationFactory<TEntryPoint> WithWebHostBuilderCore(Action<IWebHostBuilder> configuration)
Microsoft.AspNetCore.Server.HttpSys (6)
WebHostBuilderHttpSysExtensions.cs (6)
26/// A reference to the <see cref="IWebHostBuilder" /> parameter object. 29public static IWebHostBuilder UseHttpSys(this IWebHostBuilder hostBuilder) 65/// A reference to the <see cref="IWebHostBuilder" /> parameter object. 68public static IWebHostBuilder UseHttpSys(this IWebHostBuilder hostBuilder, Action<HttpSysOptions> options)
Microsoft.AspNetCore.Server.IIS (4)
WebHostBuilderIISExtensions.cs (4)
23/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param> 24/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 25public static IWebHostBuilder UseIIS(this IWebHostBuilder hostBuilder)
Microsoft.AspNetCore.Server.IISIntegration (4)
IISHostingStartup.cs (2)
21/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param> 22public void Configure(IWebHostBuilder builder)
WebHostBuilderIISExtensions.cs (2)
31public static IWebHostBuilder UseIISIntegration(this IWebHostBuilder hostBuilder)
Microsoft.AspNetCore.Server.Kestrel (20)
WebHostBuilderKestrelExtensions.cs (20)
17/// Kestrel <see cref="IWebHostBuilder"/> extensions. 22/// In <see cref="UseKestrelCore(IWebHostBuilder)"/> scenarios, it may be necessary to explicitly 27/// Has no effect in <see cref="UseKestrel(IWebHostBuilder)"/> scenarios. 35public static IWebHostBuilder UseKestrelHttpsConfiguration(this IWebHostBuilder hostBuilder) 52public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder) 68/// Includes less automatic functionality than <see cref="UseKestrel(IWebHostBuilder)"/> to make trimming more effective 79public static IWebHostBuilder UseKestrelCore(this IWebHostBuilder hostBuilder) 115public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder, Action<KestrelServerOptions> options) 121/// Configures Kestrel options but does not register an IServer. See <see cref="UseKestrel(IWebHostBuilder)"/>. 132public static IWebHostBuilder ConfigureKestrel(this IWebHostBuilder hostBuilder, Action<KestrelServerOptions> options) 151public static IWebHostBuilder UseKestrel(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, KestrelServerOptions> configureOptions) 157/// Configures Kestrel options but does not register an IServer. See <see cref="UseKestrel(IWebHostBuilder)"/>. 166public static IWebHostBuilder ConfigureKestrel(this IWebHostBuilder hostBuilder, Action<WebHostBuilderContext, KestrelServerOptions> configureOptions)
Microsoft.AspNetCore.Server.Kestrel.Transport.NamedPipes (9)
WebHostBuilderNamedPipeExtensions.cs (9)
15/// <see cref="IWebHostBuilder" /> extension methods to configure the Named Pipes transport to be used by Kestrel. 22/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param> 23/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 25public static IWebHostBuilder UseNamedPipes(this IWebHostBuilder hostBuilder) 52/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param> 54/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 56public static IWebHostBuilder UseNamedPipes(this IWebHostBuilder hostBuilder, Action<NamedPipeTransportOptions> configureOptions)
Microsoft.AspNetCore.Server.Kestrel.Transport.Quic (9)
WebHostBuilderQuicExtensions.cs (9)
12/// <see cref="IWebHostBuilder" /> extension methods to configure the Quic transport to be used by Kestrel. 19/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param> 20/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 21public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder) 37/// <param name="hostBuilder">The <see cref="IWebHostBuilder"/> to configure.</param> 39/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 40public static IWebHostBuilder UseQuic(this IWebHostBuilder hostBuilder, Action<QuicTransportOptions> configureOptions)
Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets (5)
WebHostBuilderSocketExtensions.cs (5)
13/// <see cref="IWebHostBuilder" /> extension methods to configure the Socket transport to be used by Kestrel. 26public static IWebHostBuilder UseSockets(this IWebHostBuilder hostBuilder) 53public static IWebHostBuilder UseSockets(this IWebHostBuilder hostBuilder, Action<SocketTransportOptions> configureOptions)
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
16public void Configure(IWebHostBuilder builder)
Microsoft.AspNetCore.TestHost (47)
TestServer.cs (2)
85public TestServer(IWebHostBuilder builder) 96public TestServer(IWebHostBuilder builder, IFeatureCollection featureCollection)
WebHostBuilderExtensions.cs (34)
16/// Contains extensions for configuring the <see cref="IWebHostBuilder" /> instance. 25/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param> 26/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 27public static IWebHostBuilder UseTestServer(this IWebHostBuilder builder) 39/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param> 41/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 42public static IWebHostBuilder UseTestServer(this IWebHostBuilder builder, Action<TestServerOptions> configureOptions) 75/// Configures the <see cref="IWebHostBuilder" /> instance with the services provided in <paramref name="servicesConfiguration" />. 77/// <param name="webHostBuilder">The <see cref="IWebHostBuilder"/>.</param> 79/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 80public static IWebHostBuilder ConfigureTestServices(this IWebHostBuilder webHostBuilder, Action<IServiceCollection> servicesConfiguration) 103/// Configures the <see cref="IWebHostBuilder" /> instance with the services provided in <paramref name="servicesConfiguration" />. 105/// <param name="webHostBuilder">The <see cref="IWebHostBuilder"/>.</param> 109public static IWebHostBuilder ConfigureTestContainer<TContainer>(this IWebHostBuilder webHostBuilder, Action<TContainer> servicesConfiguration) 126/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param> 128/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 129public static IWebHostBuilder UseSolutionRelativeContentRoot( 130this IWebHostBuilder builder, 139/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param> 142/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 143public static IWebHostBuilder UseSolutionRelativeContentRoot( 144this IWebHostBuilder builder, 154/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param> 158/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 159public static IWebHostBuilder UseSolutionRelativeContentRoot( 160this IWebHostBuilder builder, 171/// <param name="builder">The <see cref="IWebHostBuilder"/>.</param> 175/// <returns>The <see cref="IWebHostBuilder"/>.</returns> 177public static IWebHostBuilder UseSolutionRelativeContentRoot( 178this IWebHostBuilder builder,
WebHostBuilderFactory.cs (11)
11/// A factory for creating <see cref="IWebHostBuilder" /> instances. 16/// Resolves an <see cref="IWebHostBuilder" /> defined in the entry point of an assembly. 18/// <param name="assembly">The assembly to look for an <see cref="IWebHostBuilder"/> in.</param> 19/// <param name="args">The arguments to use when creating the <see cref="IWebHostBuilder"/> instance.</param> 20/// <returns>An <see cref="IWebHostBuilder"/> instance retrieved from the assembly in <paramref name="assembly"/>.</returns> 21public static IWebHostBuilder? CreateFromAssemblyEntryPoint(Assembly assembly, string[] args) 23var factory = HostFactoryResolver.ResolveWebHostBuilderFactory<IWebHostBuilder>(assembly); 28/// Resolves an <see cref="IWebHostBuilder" /> defined in an assembly where <typeparamref name="T"/> is declared. 30/// <param name="args">The arguments to use when creating the <see cref="IWebHostBuilder"/> instance.</param> 32/// <returns>An <see cref="IWebHostBuilder"/> instance retrieved from the assembly.</returns> 33public static IWebHostBuilder? CreateFromTypesAssemblyEntryPoint<T>(string[] args) =>
Microsoft.AspNetCore.Testing (9)
ServiceFakesWebHostExtensions.cs (9)
21/// <param name="builder">An <see cref="IWebHostBuilder"/> instance.</param> 23public static IWebHostBuilder UseFakeStartup(this IWebHostBuilder builder) 31/// <param name="builder">An <see cref="IWebHostBuilder"/> instance.</param> 34public static IWebHostBuilder ListenHttpOnAnyPort(this IWebHostBuilder builder) 41/// <param name="builder">An <see cref="IWebHostBuilder"/> instance.</param> 46public static IWebHostBuilder ListenHttpsOnAnyPort(this IWebHostBuilder builder, X509Certificate2? sslCertificate = null)
Microsoft.AspNetCore.Watch.BrowserRefresh (1)
src\sdk\src\Dotnet.Watch\Web.Middleware\HostingStartup.cs (1)
19public void Configure(IWebHostBuilder builder)