8 instantiations of WebApplicationBuilder
Microsoft.AspNetCore (8)
272 references to WebApplicationBuilder
ApiGateway (1)
Aspire.Dashboard (5)
Aspire.Dashboard.Tests (5)
Aspire.Hosting (1)
AzureContainerApps.ApiService (1)
AzureFunctionsEndToEnd.ApiService (1)
AzureSearch.ApiService (1)
AzureStorageEndToEnd.ApiService (1)
BasketService (1)
BicepSample.ApiService (1)
Binding.Http.IntegrationTests (1)
BlazorUnitedApp (1)
BrowserTelemetry.Web (1)
CatalogDb (1)
CatalogService (1)
CdkSample.ApiService (1)
CookieSample (1)
CosmosEndToEnd.ApiService (1)
DaprServiceA (1)
DaprServiceB (1)
DatabaseMigration.ApiService (1)
Elasticsearch.ApiService (1)
EventHubsApi (1)
GetDocumentSample (1)
IdentitySample.ApiEndpoints (1)
Keycloak.ApiService (1)
Keycloak.Web (1)
Microsoft.AspNetCore (34)
Microsoft.AspNetCore.Authentication.Test (2)
Microsoft.AspNetCore.Authorization.Test (1)
Microsoft.AspNetCore.Diagnostics.Tests (6)
Microsoft.AspNetCore.FunctionalTests (1)
Microsoft.AspNetCore.Http.Abstractions.Tests (3)
Microsoft.AspNetCore.Http.Extensions.Tests (2)
Microsoft.AspNetCore.Identity.FunctionalTests (1)
Microsoft.AspNetCore.Mvc.FunctionalTests (6)
Microsoft.AspNetCore.OpenApi (8)
Microsoft.AspNetCore.Rewrite.Tests (6)
Microsoft.AspNetCore.StaticAssets.Tests (9)
Microsoft.AspNetCore.Tests (118)
WebApplicationTests.cs (118)
43public delegate WebApplicationBuilder CreateBuilderFunc();
44public delegate WebApplicationBuilder CreateBuilderArgsFunc(string[] args);
45public delegate WebApplicationBuilder CreateBuilderOptionsFunc(WebApplicationOptions options);
46public delegate WebApplicationBuilder WebApplicationBuilderConstructorFunc(WebApplicationOptions options, Action<IHostBuilder> configureDefaults);
48private static WebApplicationBuilder CreateBuilder() => WebApplication.CreateBuilder();
49private static WebApplicationBuilder CreateSlimBuilder() => WebApplication.CreateSlimBuilder();
50private static WebApplicationBuilder CreateEmptyBuilder()
52var builder = WebApplication.CreateEmptyBuilder(new());
78private static WebApplicationBuilder CreateBuilderArgs(string[] args) => WebApplication.CreateBuilder(args);
79private static WebApplicationBuilder CreateSlimBuilderArgs(string[] args) => WebApplication.CreateSlimBuilder(args);
80private static WebApplicationBuilder CreateEmptyBuilderArgs(string[] args)
82var builder = WebApplication.CreateEmptyBuilder(new() { Args = args });
108private static WebApplicationBuilder CreateBuilderOptions(WebApplicationOptions options) => WebApplication.CreateBuilder(options);
109private static WebApplicationBuilder CreateSlimBuilderOptions(WebApplicationOptions options) => WebApplication.CreateSlimBuilder(options);
110private static WebApplicationBuilder CreateEmptyBuilderOptions(WebApplicationOptions options)
112var builder = WebApplication.CreateEmptyBuilder(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)
144var builder = new WebApplicationBuilder(options, slim: false, empty: true, configureDefaults);
164var builder = createBuilder(new string[] { "--urls", "http://localhost:5001" });
175var builder = createBuilder(new string[] { "--urls", "http://localhost:5001" });
198var builder = createBuilder();
217var builder = createBuilder();
236var builder = createBuilder();
256var builder = createBuilder();
278var builder = createBuilder();
289var builder = createBuilder();
351var builder = createBuilder();
362var builder = createBuilder();
387var builder = createBuilder();
407var builder = createBuilder();
469var builder = createBuilder(new WebApplicationOptions
512var builder = createBuilder(options);
541var builder = createBuilder(options);
583var builder = createBuilder(options);
614var builder = createBuilder(new WebApplicationOptions
649var builder = createBuilder();
674var builder = createBuilder();
802var builder = createBuilder(
851var builder = createBuilder(
897var builder = createBuilder(
926var builder = createBuilder(
968var builder = createBuilder(
1027var builder = createBuilder(args);
1041var builder = createBuilder(new[] { "--x=1", "--name=Larry", "--age=20", "--environment=Testing" });
1075var builder = createBuilder();
1096var builder = createBuilder();
1153var builder = createBuilder();
1199var builder = createBuilder();
1238var builder = createBuilder(new WebApplicationOptions
1276var builder = createBuilder();
1300var builder = createBuilder();
1332var builder = createBuilder();
1342var builder = createBuilder();
1354var builder = createBuilder();
1385var builder = createBuilder();
1401var builder = createBuilder();
1418var builder = createBuilder();
1440var builder = createBuilder();
1471var builder = createBuilder();
1501var builder = createBuilder();
1520var builder = createBuilder();
1547var builder = createBuilder();
1575var builder = createBuilder();
1614var builder = createBuilder();
1645var builder = createBuilder();
1664var builder = createBuilder();
1686var builder = createBuilder();
1713var builder = createBuilder();
1751var builder = createBuilder();
1771var builder = WebApplication.CreateEmptyBuilder(new());
1787var builder = createBuilder(new[] { "--environment", "Development" });
1801var builder = CreateEmptyBuilderArgs(new[] { "--environment", "Development" });
1814var builder = createBuilder();
1829var builder = createBuilder();
1858var builder = createBuilder();
1885var builder = createBuilder();
1921var builder = createBuilder();
1948var builder = createBuilder();
2013var builder = createBuilder();
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 });
2078private async Task DeveloperExceptionPageIsNotOn(WebApplicationBuilder builder)
2098var builder = WebApplication.CreateBuilder(new WebApplicationOptions { ApplicationName = typeof(WebApplicationTests).Assembly.FullName });
2108var builder = WebApplication.CreateBuilder(new[] { "--applicationName", typeof(WebApplicationTests).Assembly.FullName });
2123var builder = WebApplication.CreateBuilder(options);
2133var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Development });
2158var builder = createBuilder(new WebApplicationOptions() { EnvironmentName = Environments.Production });
2182var builder = createBuilder();
2224var builder = createBuilder();
2245var builder = createBuilder();
2275var builder = createBuilder(new WebApplicationOptions
2305var builder = createBuilder();
2322var builder = createBuilder();
2339var builder = createBuilder();
2353var builder = createBuilder();
2367var builder = createBuilder();
2385var builder = createBuilder();
2398var builder = createBuilder();
2419var builder = createBuilder();
2437var builder = createBuilder();
2478var builder = createBuilder();
2516var builder = createBuilder();
2538var builder = WebApplication.CreateBuilder();
2564var builder = WebApplication.CreateSlimBuilder();
2590var builder = WebApplication.CreateSlimBuilder();
2616var builder = WebApplication.CreateSlimBuilder();
2643var builder = WebApplication.CreateSlimBuilder();
2680var builder = WebApplication.CreateBuilder();
2711var builder = WebApplication.CreateBuilder();
2731var builder = WebApplication.CreateBuilder();
2759var builder = WebApplication.CreateBuilder();
2777var builder = WebApplication.CreateBuilder();
2800var builder = WebApplication.CreateBuilder();
2820var builder = WebApplication.CreateBuilder();
MilvusPlayground.ApiService (1)
MinimalFormSample (1)
MinimalJwtBearerSample (1)
MinimalOpenIdConnectSample (1)
MinimalSample (1)
Mongo.ApiService (1)
MvcFormSample (1)
MyFrontend (1)
MySql.ApiService (1)
Nats.ApiService (1)
Nats.Backend (1)
OpenAIEndToEnd.WebStory (1)
OracleEndToEnd.ApiService (1)
OrleansClient (1)
OrleansServer (1)
OutputCachingSample (1)
ParameterEndToEnd.ApiService (1)
PostgresEndToEnd.ApiService (1)
ProxylessEndToEnd.ApiService (1)
Qdrant.ApiService (1)
RateLimitingSample (1)
Redis.ApiService (1)
Sample (1)
Seq.ApiService (1)
SignalRWeb (1)
SimpleWebSiteWithWebApplicationBuilder (1)
SqlServerEndToEnd.ApiService (1)
SqlServerEndToEnd.DbSetup (1)
Stress.ApiService (1)
TestingAppHost1.MyWebApp (1)
TestProject.IntegrationServiceA (1)
TestProject.ServiceA (1)
TestProject.ServiceB (1)
TestProject.ServiceC (1)
WaitFor.Frontend (1)
WaitForSandbox.ApiService (1)
WaitForSandbox.DbSetup (1)
WebPubSubWeb (1)
WebTransportInteractiveSampleApp (1)
WebTransportSampleApp (1)