299 instantiations of ConfigurationBuilder
Aspire.Hosting (2)
ProjectResourceBuilderExtensions.cs (1)
638var configBuilder = new ConfigurationBuilder();
src\Shared\SecretsStore.cs (1)
87return new ConfigurationBuilder()
Aspire.Hosting.Tests (20)
Dashboard\DashboardLifecycleHookTests.cs (2)
43var configuration = new ConfigurationBuilder().Build(); 84var configuration = new ConfigurationBuilder().Build();
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();
Dcp\ApplicationExecutorTests.cs (1)
1056var builder = new ConfigurationBuilder();
ProjectResourceTests.cs (1)
672public IConfiguration? Configuration => JsonConfigString == null ? null : new ConfigurationBuilder()
AutobahnTestApp (1)
Program.cs (1)
13var config = new ConfigurationBuilder()
Benchmarks (1)
Program.cs (1)
17var config = new ConfigurationBuilder()
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
34var projectConfiguration = new ConfigurationBuilder()
dotnet-user-secrets (1)
Internal\SecretsStore.cs (1)
94return new ConfigurationBuilder()
HealthChecksSample (1)
Program.cs (1)
31var config = new ConfigurationBuilder()
IdentitySample.DefaultUI (1)
Startup.cs (1)
23var builder = new ConfigurationBuilder()
IdentitySample.Mvc (1)
Startup.cs (1)
16var builder = new ConfigurationBuilder()
InMemory.FunctionalTests (1)
HttpsConnectionMiddlewareTests.cs (1)
73var configuration = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string>
Interop.FunctionalTests (2)
Http3\Http3TlsTests.cs (2)
407var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 439var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
LocalizationSample (1)
Startup.cs (1)
132var config = new ConfigurationBuilder()
LocalizationWebsite (1)
Program.cs (1)
10var config = new ConfigurationBuilder()
Microsoft.AspNetCore (1)
WebHost.cs (1)
165builder.UseConfiguration(new ConfigurationBuilder().AddCommandLine(args).Build());
Microsoft.AspNetCore.Authentication.Test (10)
JwtBearerTests_Handler.cs (5)
960var config = new ConfigurationBuilder().AddInMemoryCollection([ 996var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1023var config = new ConfigurationBuilder().AddInMemoryCollection([ 1050var config = new ConfigurationBuilder().AddInMemoryCollection([ 1070var config = new ConfigurationBuilder().AddInMemoryCollection([
OpenIdConnect\OpenIdConnectTests.cs (5)
425var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 458var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 495var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 518var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 545var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.AzureAppServices.HostingStartup (1)
HostingStartupConfigurationExtensions.cs (1)
13return new ConfigurationBuilder()
Microsoft.AspNetCore.BrowserTesting (1)
BrowserTestBase.cs (1)
48var builder = new ConfigurationBuilder()
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Builder\RazorComponentsEndpointConventionBuilderExtensionsTest.cs (1)
274collection.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
RazorComponentEndpointInvokerTest.cs (1)
23.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
RazorComponentsServiceCollectionExtensionsTest.cs (2)
20services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build()); 47services.AddSingleton<IConfiguration>(new ConfigurationBuilder().AddInMemoryCollection().Build());
Microsoft.AspNetCore.Components.Server.Tests (1)
ComponentEndpointRouteBuilderExtensionsTest.cs (1)
141services.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
Microsoft.AspNetCore.DataProtection.Tests (8)
Internal\KeyManagementOptionsPostSetupTest.cs (6)
22var config = new ConfigurationBuilder().AddInMemoryCollection( 39var config = new ConfigurationBuilder().AddInMemoryCollection( 58var config = new ConfigurationBuilder().AddInMemoryCollection( 77var config = new ConfigurationBuilder().AddInMemoryCollection( 107var config = new ConfigurationBuilder().AddInMemoryCollection( 129var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
ServiceCollectionTests.cs (2)
76var config = new ConfigurationBuilder().AddInMemoryCollection( 112var config = new ConfigurationBuilder().AddInMemoryCollection().Build();
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
69return new ConfigurationBuilder()
Logging\HttpLoggingServiceExtensionsTests.cs (1)
35var builder = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
65return new ConfigurationBuilder()
Microsoft.AspNetCore.HostFiltering.Tests (1)
HostFilteringMiddlewareTests.cs (1)
227var config = new ConfigurationBuilder().Add(new ReloadableMemorySource()).Build();
Microsoft.AspNetCore.Hosting (3)
GenericHost\WebHostBuilderBase.cs (1)
18var configBuilder = new ConfigurationBuilder()
WebHostBuilder.cs (2)
41_config = new ConfigurationBuilder() 275var builder = new ConfigurationBuilder()
Microsoft.AspNetCore.Hosting.Tests (26)
HostingEnvironmentExtensionsTests.cs (2)
18new ConfigurationBuilder() 65new ConfigurationBuilder()
WebHostBuilderTests.cs (11)
299var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 512var config = new ConfigurationBuilder() 538var config = new ConfigurationBuilder() 564var config = new ConfigurationBuilder() 573var overrideConfig = new ConfigurationBuilder() 598var configBuilder = new ConfigurationBuilder() 627var configBuilder = new ConfigurationBuilder() 648var configBuilder = new ConfigurationBuilder() 1320var config = new ConfigurationBuilder() 1482var builder = new ConfigurationBuilder() 1505var builder = new ConfigurationBuilder()
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 (10)
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(); 818var builder = new ConfigurationBuilder() 841var builder = new ConfigurationBuilder() 1106return new WebHostBuilder().UseConfiguration(config ?? new ConfigurationBuilder().Build()).UseStartup("Microsoft.AspNetCore.Hosting.Tests");
Microsoft.AspNetCore.Hosting.TestSites (1)
Program.cs (1)
20var config = new ConfigurationBuilder()
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (9)
CustomSchemaTest.cs (1)
22.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
DefaultPocoTest.cs (1)
23.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
EmptySchemaTest.cs (1)
22.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
MaxKeyLengthSchemaTest.cs (1)
23.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
UserOnlyCustomContextTest.cs (1)
67.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
UserOnlyTest.cs (1)
28.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
Utilities\TestEnvironment.cs (1)
14var configBuilder = new ConfigurationBuilder()
VersionOneSchemaTest.cs (1)
22.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
VersionTwoSchemaTest.cs (1)
22.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
Microsoft.AspNetCore.Identity.InMemory.Test (2)
ControllerTest.cs (2)
32.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()) 84.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build())
Microsoft.AspNetCore.Identity.Test (21)
IdentityBuilderTest.cs (16)
57.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 67.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 78.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 93.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 108.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 118.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 128.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 138.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 150.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 162.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()) 179.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 203.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 222.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 242.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 254.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build()); 265.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
UserManagerTest.cs (5)
17var config = new ConfigurationBuilder().Build(); 32var config = new ConfigurationBuilder().Build(); 791var config = new ConfigurationBuilder().Build(); 888var config = new ConfigurationBuilder().Build(); 1744var config = new ConfigurationBuilder().Build();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
216collection.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
Microsoft.AspNetCore.Mvc.Test (5)
MvcServiceCollectionExtensionsTest.cs (5)
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()); 405services.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Builder\ControllerActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
289collection.AddSingleton<IConfiguration>(new ConfigurationBuilder().Build());
Microsoft.AspNetCore.Server.Kestrel.Core (1)
KestrelServerOptions.cs (1)
430public KestrelConfigurationLoader Configure() => Configure(new ConfigurationBuilder().Build());
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
KestrelServerTests.cs (4)
755var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 838currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 866currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 914var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.Server.Kestrel.Tests (73)
ConfigurationReaderTests.cs (22)
22var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 32var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 45var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 77var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 98new ConfigurationBuilder().AddInMemoryCollection(new[] 110var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 120var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 133var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 144var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 155var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 224var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 240var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 257var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 273var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 286var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 301var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 316var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 345var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 360var config = new ConfigurationBuilder().Build(); 370var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 383var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 396var config = new ConfigurationBuilder().Build();
HttpsConfigurationTests.cs (3)
87var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 125var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 157var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
KestrelConfigurationLoaderTests.cs (48)
41var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 62var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 123var config1 = new ConfigurationBuilder().AddInMemoryCollection(new[] 134var config2 = new ConfigurationBuilder().AddInMemoryCollection(new[] 170var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 216var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 256var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 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(); 370var configRoot = new ConfigurationBuilder().AddInMemoryCollection(new[] 422var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 469var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 530var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 565var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 589var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 614var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 639var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 678var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 712var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 743var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 768var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 778config = new ConfigurationBuilder().AddInMemoryCollection(new[] 787config = new ConfigurationBuilder().AddInMemoryCollection(new[] 796config = new ConfigurationBuilder().AddInMemoryCollection(new[] 805config = new ConfigurationBuilder().AddInMemoryCollection(new[] 820var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 833config = new ConfigurationBuilder().AddInMemoryCollection(new[] 869var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 968var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1064var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1134var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1185var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1226var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1255var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1289var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1322var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1356var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1390var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1417var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1447var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1468var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1480serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(new[] 1507var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1516serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(new[] 1544var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1559serverOptions.ConfigurationLoader.Configuration = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
23var configuration = new ConfigurationBuilder()
Microsoft.AspNetCore.StaticFiles.Tests (1)
StaticFilesTestServer.cs (1)
18var configuration = new ConfigurationBuilder()
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
50var configBuilder = new ConfigurationBuilder();
Microsoft.Extensions.AmbientMetadata.Application.Tests (7)
ApplicationMetadataExtensionsTests.cs (6)
36var config = new ConfigurationBuilder().Build(); 43Assert.Throws<ArgumentNullException>(() => new ConfigurationBuilder().AddApplicationMetadata(null!)); 54var act = () => new ConfigurationBuilder().AddApplicationMetadata(_hostEnvironment.Object, sectionName!); 72var expectedConfig = new ConfigurationBuilder() 81var actualConfig = new ConfigurationBuilder().AddApplicationMetadata(_hostEnvironment.Object, nameof(ApplicationMetadata)).Build(); 98var config = new ConfigurationBuilder()
ApplicationMetadataSourceTests.cs (1)
55var configurationBuilder = new ConfigurationBuilder();
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
45var configurationBuilder = new ConfigurationBuilder();
Microsoft.Extensions.Compliance.Redaction.Tests (2)
HmacRedactorExtensionsTests.cs (1)
32var section = HmacRedactorTest.GetRedactorConfiguration(new ConfigurationBuilder(), HmacRedactorTest.HmacExamples[0].KeyId, HmacRedactorTest.HmacExamples[0].Key);
HmacRedactorTest.cs (1)
126var section = GetRedactorConfiguration(new ConfigurationBuilder(), example.KeyId, example.Key);
Microsoft.Extensions.Compliance.Testing.Tests (1)
Setup.cs (1)
15return new ConfigurationBuilder()
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()); 46var config = new ConfigurationBuilder() 62var config = new ConfigurationBuilder() 78var config = new ConfigurationBuilder() 95var config = new ConfigurationBuilder() 116var config = new ConfigurationBuilder() 133var config = new ConfigurationBuilder() 154var config = new ConfigurationBuilder() 173var config = new ConfigurationBuilder() 194var config = new ConfigurationBuilder() 214var config = new ConfigurationBuilder() 249var config = new ConfigurationBuilder() 275var config = new ConfigurationBuilder() 298var config = new ConfigurationBuilder() 323var config = new ConfigurationBuilder() 353var config = new ConfigurationBuilder() 377var config = new ConfigurationBuilder()
Microsoft.Extensions.Diagnostics (1)
Metrics\Configuration\MetricListenerConfigurationFactory.cs (1)
23var configurationBuilder = new ConfigurationBuilder();
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)
94var configuration = new ConfigurationBuilder()
TcpEndpointProbesExtensionsTests.cs (2)
104var config = new ConfigurationBuilder() 129var config = new ConfigurationBuilder()
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (4)
Linux\AcceptanceTest.cs (3)
54var section = new ConfigurationBuilder() 106var section = new ConfigurationBuilder() 155var section = new ConfigurationBuilder()
ResourceMonitoringExtensionsTests.cs (1)
149var config = new ConfigurationBuilder()
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
54var configRoot = new ConfigurationBuilder()
Microsoft.Extensions.Hosting (2)
HostBuilder.cs (2)
210IConfigurationBuilder configBuilder = new ConfigurationBuilder() 279IConfigurationBuilder configBuilder = new ConfigurationBuilder()
Microsoft.Extensions.Hosting.Testing.Tests (6)
HostingFakesExtensionsTests.cs (6)
129var configBuilder = new ConfigurationBuilder(); 155var configBuilder = new ConfigurationBuilder(); 186var configBuilder = new ConfigurationBuilder(); 215var configBuilder = new ConfigurationBuilder(); 241var configBuilder = new ConfigurationBuilder(); 272var configBuilder = new ConfigurationBuilder();
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
110return new ConfigurationBuilder()
Logging\Internal\TestConfiguration.cs (1)
18new ConfigurationBuilder()
Microsoft.Extensions.Http.Resilience.Tests (4)
Helpers\ConfigurationStubFactory.cs (2)
21return new ConfigurationBuilder() 28return new ConfigurationBuilder().Build();
Routing\RoutingStrategyTest.cs (2)
121var builder = new ConfigurationBuilder(); 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)
16return new ConfigurationBuilder()
Microsoft.Extensions.Logging.Configuration (1)
LoggerProviderConfigurationFactory.cs (1)
25var configurationBuilder = new ConfigurationBuilder();
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
DependencyInjectionExtensionsTests.cs (2)
26var builder = new ConfigurationBuilder(); 44var builder = new ConfigurationBuilder();
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
DnsSrvServiceEndpointResolverTests.cs (1)
172var config = new ConfigurationBuilder().Add(configSource);
Microsoft.Extensions.ServiceDiscovery.Tests (10)
ConfigurationServiceEndpointResolverTests.cs (7)
23var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 58var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 139var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 243var config = new ConfigurationBuilder().AddInMemoryCollection(data); 285var config = new ConfigurationBuilder().Add(configSource); 352var config = new ConfigurationBuilder().Add(configSource); 397var config = new ConfigurationBuilder().Add(configSource);
PassThroughServiceEndpointResolverTests.cs (3)
53var config = new ConfigurationBuilder().Add(configSource); 86var config = new ConfigurationBuilder().Add(configSource); 120var config = new ConfigurationBuilder().Add(configSource);
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (4)
YarpServiceDiscoveryTests.cs (4)
56var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 87var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 119var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?> 200var config = new ConfigurationBuilder().AddInMemoryCollection(new Dictionary<string, string?>
Microsoft.Extensions.Telemetry.Tests (2)
Latency\LatencyConsoleExtensionsTests.cs (1)
69return new ConfigurationBuilder()
Latency\LatencyContextExtensionTests.cs (1)
122return new ConfigurationBuilder()
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)
18var config = new ConfigurationBuilder()
ServerComparison.TestSites (1)
Program.cs (1)
17.UseConfiguration(new ConfigurationBuilder()
SignalRSamples (1)
Program.cs (1)
14var config = new ConfigurationBuilder()
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
904var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
Templates.Blazor.WebAssembly.Auth.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
32var builder = new ConfigurationBuilder()
Templates.Blazor.WebAssembly.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
32var builder = new ConfigurationBuilder()
Templates.Mvc.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
32var builder = new ConfigurationBuilder()
Templates.Tests (1)
src\Shared\E2ETesting\E2ETestOptions.cs (1)
32var builder = new ConfigurationBuilder()
16 references to ConfigurationBuilder
Aspire.Hosting (1)
ProjectResourceBuilderExtensions.cs (1)
638var configBuilder = new ConfigurationBuilder();
Aspire.Hosting.Tests (1)
Dcp\ApplicationExecutorTests.cs (1)
1056var builder = new ConfigurationBuilder();
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
50var configBuilder = new ConfigurationBuilder();
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
ApplicationMetadataSourceTests.cs (1)
55var configurationBuilder = new ConfigurationBuilder();
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
45var configurationBuilder = new ConfigurationBuilder();
Microsoft.Extensions.Diagnostics (1)
Metrics\Configuration\MetricListenerConfigurationFactory.cs (1)
23var configurationBuilder = new ConfigurationBuilder();
Microsoft.Extensions.Hosting.Testing.Tests (6)
HostingFakesExtensionsTests.cs (6)
129var configBuilder = new ConfigurationBuilder(); 155var configBuilder = new ConfigurationBuilder(); 186var configBuilder = new ConfigurationBuilder(); 215var configBuilder = new ConfigurationBuilder(); 241var configBuilder = new ConfigurationBuilder(); 272var configBuilder = new ConfigurationBuilder();
Microsoft.Extensions.Http.Resilience.Tests (1)
Routing\RoutingStrategyTest.cs (1)
121var builder = new ConfigurationBuilder();
Microsoft.Extensions.Logging.Configuration (1)
LoggerProviderConfigurationFactory.cs (1)
25var configurationBuilder = new ConfigurationBuilder();
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
DependencyInjectionExtensionsTests.cs (2)
26var builder = new ConfigurationBuilder(); 44var builder = new ConfigurationBuilder();