45 instantiations of WebApplicationOptions
Aspire.Dashboard.Tests (1)
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
50options: new WebApplicationOptions
Microsoft.AspNetCore (5)
WebApplication.cs (5)
96new WebApplicationBuilder(new() { Args = args }).Build(); 103new(new()); 110new(new(), slim: true); 118new(new() { Args = args }); 126new(new() { Args = args }, slim: true);
Microsoft.AspNetCore.Authorization.Test (1)
AuthorizationMiddlewareTests.cs (1)
977var builder = WebApplication.CreateBuilder(new WebApplicationOptions()
Microsoft.AspNetCore.FunctionalTests (1)
WebApplicationFunctionalTests.cs (1)
116var builder = WebApplication.CreateBuilder(new WebApplicationOptions
Microsoft.AspNetCore.StaticAssets.Tests (9)
StaticAssetsIntegrationTests.cs (9)
36var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 86var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 137var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 189var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 246var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 301var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 357var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 410var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions 590var builder = WebApplication.CreateEmptyBuilder(new WebApplicationOptions
Microsoft.AspNetCore.Tests (28)
WebApplicationTests.cs (28)
52var builder = WebApplication.CreateEmptyBuilder(new()); 82var builder = WebApplication.CreateEmptyBuilder(new() { Args = args }); 469var builder = createBuilder(new WebApplicationOptions 506var options = new WebApplicationOptions 536var options = new WebApplicationOptions 578var options = new WebApplicationOptions 614var builder = createBuilder(new WebApplicationOptions 697var options = new WebApplicationOptions 722var options = new WebApplicationOptions 737var options = new WebApplicationOptions 754var options = new WebApplicationOptions 769var options = new WebApplicationOptions 794var options = new WebApplicationOptions 837var options = new WebApplicationOptions 887var options = new WebApplicationOptions 927new(), 963var options = new WebApplicationOptions 1238var builder = createBuilder(new WebApplicationOptions 1771var builder = WebApplication.CreateEmptyBuilder(new()); 2027var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Development }); 2049var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Development }); 2067var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Production }); 2074var builder = CreateEmptyBuilderOptions(new WebApplicationOptions() { EnvironmentName = Environments.Development }); 2098var builder = WebApplication.CreateBuilder(new WebApplicationOptions { ApplicationName = typeof(WebApplicationTests).Assembly.FullName }); 2117var options = new WebApplicationOptions 2133var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Development }); 2158var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Production }); 2275var builder = createBuilder(new WebApplicationOptions
35 references to WebApplicationOptions
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
113WebApplicationOptions? options = null)
Microsoft.AspNetCore (11)
WebApplication.cs (6)
131/// <param name="options">The <see cref="WebApplicationOptions"/> to configure the <see cref="WebApplicationBuilder"/>.</param> 133public static WebApplicationBuilder CreateBuilder(WebApplicationOptions options) => 139/// <param name="options">The <see cref="WebApplicationOptions"/> to configure the <see cref="WebApplicationBuilder"/>.</param> 141public static WebApplicationBuilder CreateSlimBuilder(WebApplicationOptions options) => 147/// <param name="options">The <see cref="WebApplicationOptions"/> to configure the <see cref="WebApplicationBuilder"/>.</param> 149public static WebApplicationBuilder CreateEmptyBuilder(WebApplicationOptions options) =>
WebApplicationBuilder.cs (4)
34internal WebApplicationBuilder(WebApplicationOptions options, Action<IHostBuilder>? configureDefaults = null) 80internal WebApplicationBuilder(WebApplicationOptions options, bool slim, Action<IHostBuilder>? configureDefaults = null) 146internal WebApplicationBuilder(WebApplicationOptions options, bool slim, bool empty, Action<IHostBuilder>? configureDefaults = null) 242private static void SetDefaultContentRoot(WebApplicationOptions options, ConfigurationManager configuration)
WebApplicationOptions.cs (1)
7/// Options for configuring the behavior for <see cref="WebApplication.CreateBuilder(WebApplicationOptions)"/>.
Microsoft.AspNetCore.Tests (23)
WebApplicationTests.cs (23)
45public delegate WebApplicationBuilder CreateBuilderOptionsFunc(WebApplicationOptions options); 46public delegate WebApplicationBuilder WebApplicationBuilderConstructorFunc(WebApplicationOptions options, Action<IHostBuilder> configureDefaults); 108private static WebApplicationBuilder CreateBuilderOptions(WebApplicationOptions options) => WebApplication.CreateBuilder(options); 109private static WebApplicationBuilder CreateSlimBuilderOptions(WebApplicationOptions options) => WebApplication.CreateSlimBuilder(options); 110private static WebApplicationBuilder CreateEmptyBuilderOptions(WebApplicationOptions options) 138private static WebApplicationBuilder WebApplicationBuilderConstructor(WebApplicationOptions options, Action<IHostBuilder> configureDefaults) 140private static WebApplicationBuilder WebApplicationSlimBuilderConstructor(WebApplicationOptions options, Action<IHostBuilder> configureDefaults) 142private static WebApplicationBuilder WebApplicationEmptyBuilderConstructor(WebApplicationOptions options, Action<IHostBuilder> configureDefaults) 506var options = new WebApplicationOptions 536var options = new WebApplicationOptions 578var options = new WebApplicationOptions 697var options = new WebApplicationOptions 722var options = new WebApplicationOptions 737var options = new WebApplicationOptions 754var options = new WebApplicationOptions 769var options = new WebApplicationOptions 794var options = new WebApplicationOptions 837var options = new WebApplicationOptions 887var options = new WebApplicationOptions 963var options = new WebApplicationOptions 2117var options = new WebApplicationOptions 2277ApplicationName = typeof(WebApplicationOptions).Assembly.FullName, 2296Assert.Equal(typeof(WebApplicationOptions).Assembly.FullName, hostEnv.ApplicationName);