3 implementations of Build
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
172public IConfigurationRoot Build()
Microsoft.Extensions.Configuration (2)
ConfigurationBuilder.cs (1)
45public IConfigurationRoot Build()
ConfigurationManager.cs (1)
98IConfigurationRoot IConfigurationBuilder.Build() => this;
230 references to Build
Aspire.Dashboard.Tests (4)
Integration\IntegrationTestHelpers.cs (1)
73.AddInMemoryCollection(initialData).Build();
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
46var config = new ConfigurationManager().AddInMemoryCollection(Configuration).Build();
Integration\StartupTests.cs (2)
157.Build(); 192.Build();
Aspire.Hosting (1)
src\Shared\SecretsStore.cs (1)
89.Build()
Aspire.Hosting.Tests (17)
Dashboard\TransportOptionsValidatorTests.cs (16)
20var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 40var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 58var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 76var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 93var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 113var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 132var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 152var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 174var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 197var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 222var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 246var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 268var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 290var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 306var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 322var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
ProjectResourceTests.cs (1)
674.Build();
AutobahnTestApp (1)
Program.cs (1)
15.Build();
Benchmarks (1)
Program.cs (1)
20.Build();
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
36.Build();
dotnet-user-secrets (1)
Internal\SecretsStore.cs (1)
96.Build()
HealthChecksSample (1)
Program.cs (1)
36.Build();
IdentitySample.DefaultUI (1)
Startup.cs (1)
29Configuration = builder.Build();
IdentitySample.Mvc (1)
Startup.cs (1)
22Configuration = builder.Build();
InMemory.FunctionalTests (1)
HttpsConnectionMiddlewareTests.cs (1)
78}).Build();
Interop.FunctionalTests (2)
Http3\Http3TlsTests.cs (2)
413}).Build(); 442}).Build();
LocalizationSample (1)
Startup.cs (1)
134.Build();
LocalizationWebsite (1)
Program.cs (1)
12.Build();
Microsoft.AspNetCore (1)
WebHost.cs (1)
165builder.UseConfiguration(new ConfigurationBuilder().AddCommandLine(args).Build());
Microsoft.AspNetCore.Authentication.Test (6)
JwtBearerTests_Handler.cs (1)
1000}).Build();
OpenIdConnect\OpenIdConnectTests.cs (5)
434}).Build(); 467}).Build(); 502}).Build(); 525}).Build(); 550}).Build();
Microsoft.AspNetCore.AzureAppServices.HostingStartup (1)
HostingStartupConfigurationExtensions.cs (1)
15.Build();
Microsoft.AspNetCore.BrowserTesting (1)
BrowserTestBase.cs (1)
63return builder.Build();
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
RazorComponentsServiceCollectionExtensionsTest.cs (2)
20services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 47services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build());
Microsoft.AspNetCore.DataProtection.Tests (2)
Internal\KeyManagementOptionsPostSetupTest.cs (1)
129var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
ServiceCollectionTests.cs (1)
112var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
74.Build()
Logging\HttpLoggingServiceExtensionsTests.cs (1)
42var configuration = builder.Build();
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
73.Build()
Microsoft.AspNetCore.HostFiltering.Tests (1)
HostFilteringMiddlewareTests.cs (1)
227var config = new ConfigurationBuilder().Add(new ReloadableMemorySource()).Build();
Microsoft.AspNetCore.Hosting (3)
GenericHost\WebHostBuilderBase.cs (1)
26_config = configBuilder.Build();
WebHostBuilder.cs (2)
43.Build(); 281var configuration = builder.Build();
Microsoft.AspNetCore.Hosting.Tests (26)
HostingEnvironmentExtensionsTests.cs (2)
22}).Build()); 69}).Build());
WebHostBuilderTests.cs (12)
299var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 381var config = configBuilder.Build(); 514.Build(); 540.Build(); 566.Build(); 575.Build(); 600var config = configBuilder.Build(); 629var config = configBuilder.Build(); 650var config = configBuilder.Build(); 1325}).Build(); 1484var config = builder.Build(); 1507var config = builder.Build();
WebHostConfigurationsTests.cs (3)
25var config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build()); 40var config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build()); 51var config = new WebHostOptions(new ConfigurationBuilder().AddInMemoryCollection(parameters).Build());
WebHostTests.cs (9)
57var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 76var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 96var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 127var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 201var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 240var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 276var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 820var config = builder.Build(); 843var config = builder.Build();
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
23.Build();
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Utilities\TestEnvironment.cs (1)
20Config = configBuilder.Build();
Microsoft.AspNetCore.Mvc.Test (4)
MvcServiceCollectionExtensionsTest.cs (4)
166services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 183services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 202services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 219services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
KestrelServerTests.cs (4)
759}).Build(); 843}).Build(); 872}).Build(); 918}).Build();
Microsoft.AspNetCore.Server.Kestrel.Tests (71)
ConfigurationReaderTests.cs (20)
22var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 35}).Build(); 53}).Build(); 81}).Build(); 102}).Build()); 110var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 123}).Build(); 136}).Build(); 147}).Build(); 170}).Build(); 228}).Build(); 245}).Build(); 261}).Build(); 276}).Build(); 289}).Build(); 305}).Build(); 324}).Build(); 348}).Build(); 373}).Build(); 386}).Build();
HttpsConfigurationTests.cs (3)
92}).Build(); 129}).Build(); 162}).Build();
KestrelConfigurationLoaderTests.cs (48)
45}).Build(); 65}).Build(); 126}).Build(); 137}).Build(); 173}).Build(); 219}).Build(); 260}).Build(); 314var config = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig.Concat(devCertConfig)).Build(); 321serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig.Concat(devCertConfig).Concat(defaultCertConfig)).Build(); 328serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig.Concat(devCertConfig)).Build(); 335serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(endpointConfig).Build(); 375}).Build(); 425}).Build(); 472}).Build(); 533}).Build(); 570}).Build(); 595}).Build(); 620}).Build(); 644}).Build(); 685.Build(); 715}).Build(); 746}).Build(); 773}).Build(); 782}).Build(); 791}).Build(); 800}).Build(); 809}).Build(); 824}).Build(); 837}).Build(); 874}).Build(); 973}).Build(); 1068}).Build(); 1138}).Build(); 1189}).Build(); 1230}).Build(); 1259}).Build(); 1293}).Build(); 1326}).Build(); 1364}).Build(); 1394}).Build(); 1421}).Build(); 1451}).Build(); 1472}).Build(); 1485}).Build(); 1512}).Build(); 1522}).Build(); 1548}).Build(); 1563}).Build();
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
25.Build();
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFilesTestServer.cs (1)
23.Build();
Microsoft.Extensions.AmbientMetadata.Application.Tests (3)
ApplicationMetadataExtensionsTests.cs (3)
78.Build(); 81var actualConfig = new ConfigurationBuilder().AddApplicationMetadata(_hostEnvironment.Object, nameof(ApplicationMetadata)).Build(); 106.Build();
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
26.Build()
Microsoft.Extensions.Compliance.Testing.Tests (1)
Setup.cs (1)
20.Build()
Microsoft.Extensions.Configuration.KeyPerFile.Tests (19)
KeyPerFileTests.cs (19)
23new ConfigurationBuilder().AddKeyPerFile(o => o.Optional = true).Build(); 29new ConfigurationBuilder().AddKeyPerFile("nonexistent", true).Build(); 35var e = Assert.Throws<ArgumentException>(() => new ConfigurationBuilder().AddKeyPerFile("nonexistent", false).Build()); 48.Build(); 64.Build(); 80.Build(); 101.Build(); 118.Build(); 139.Build(); 160.Build(); 179.Build(); 200.Build(); 216.Build(); 254}).Build(); 280}).Build(); 304}).Build(); 328}).Build(); 358}).Build(); 383}).Build();
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherExtensionsTests.cs (1)
81return new ConfigurationBuilder().AddInMemoryCollection(configurationDict).Build();
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
KubernetesProbesExtensionsTests.cs (1)
101.Build();
TcpEndpointProbesExtensionsTests.cs (2)
109.Build(); 134.Build();
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Linux\AcceptanceTest.cs (3)
56.Build() 108.Build() 157.Build()
ResourceMonitoringExtensionsTests.cs (1)
159.Build();
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
59.Build();
Microsoft.Extensions.Hosting (2)
HostBuilder.cs (2)
217_hostConfiguration = configBuilder.Build(); 287_appConfiguration = configBuilder.Build();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
115.Build()
Logging\Internal\TestConfiguration.cs (1)
26.Build()
Microsoft.Extensions.Http.Resilience.Tests (2)
Helpers\ConfigurationStubFactory.cs (1)
23.Build();
Routing\RoutingStrategyTest.cs (1)
168return new ConfigurationBuilder().AddInMemoryCollection(values.Select(pair => new KeyValuePair<string, string?>("section:" + pair.Key, pair.Value))).Build().GetSection("section");
Microsoft.Extensions.Logging.AzureAppServices (1)
SiteConfigurationProvider.cs (1)
19.Build();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
DnsSrvServiceEndpointResolverTests.cs (1)
175.AddSingleton<IConfiguration>(config.Build())
Microsoft.Extensions.ServiceDiscovery.Tests (10)
ConfigurationServiceEndpointResolverTests.cs (7)
28.AddSingleton<IConfiguration>(config.Build()) 64.AddSingleton<IConfiguration>(config.Build()) 145.AddSingleton<IConfiguration>(config.Build()) 245.AddSingleton<IConfiguration>(config.Build()) 287.AddSingleton<IConfiguration>(config.Build()) 354.AddSingleton<IConfiguration>(config.Build()) 399.AddSingleton<IConfiguration>(config.Build())
PassThroughServiceEndpointResolverTests.cs (3)
55.AddSingleton<IConfiguration>(config.Build()) 88.AddSingleton<IConfiguration>(config.Build()) 122.AddSingleton<IConfiguration>(config.Build())
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (4)
YarpServiceDiscoveryTests.cs (4)
63.AddSingleton<IConfiguration>(config.Build()) 93.AddSingleton<IConfiguration>(config.Build()) 127.AddSingleton<IConfiguration>(config.Build()) 206.AddSingleton<IConfiguration>(config.Build())
Microsoft.Extensions.Telemetry.Tests (2)
Latency\LatencyConsoleExtensionsTests.cs (1)
74.Build()
Latency\LatencyContextExtensionTests.cs (1)
127.Build()
SampleStartups (3)
StartupBlockingOnStart.cs (1)
35var config = new ConfigurationBuilder().AddCommandLine(args).Build();
StartupConfigureAddresses.cs (1)
28var config = new ConfigurationBuilder().AddCommandLine(args).Build();
StartupFullControl.cs (1)
22.Build();
ServerComparison.TestSites (1)
Program.cs (1)
19.Build())
SignalRSamples (1)
Program.cs (1)
16.Build();
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
907}).Build();
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
46.Build();
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
46.Build();
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
46.Build();
Templates.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
46.Build();