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