3 implementations of IConfigurationRoot
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
16public class WebAssemblyHostConfiguration : IConfiguration, IConfigurationRoot, IConfigurationBuilder
Microsoft.Extensions.Configuration (2)
ConfigurationManager.cs (1)
25public sealed class ConfigurationManager : IConfigurationManager, IConfigurationRoot, IDisposable
ConfigurationRoot.cs (1)
17public class ConfigurationRoot : IConfigurationRoot, IDisposable
203 references to IConfigurationRoot
Aspire.Dashboard.Tests (4)
Integration\IntegrationTestHelpers.cs (1)
72var config = new ConfigurationManager()
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
46var config = new ConfigurationManager().AddInMemoryCollection(Configuration).Build();
Integration\StartupTests.cs (2)
155var config = new ConfigurationManager() 190var config = new ConfigurationManager()
Aspire.Hosting.Tests (18)
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();
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()
HealthChecksSample (1)
Program.cs (1)
31var config = new ConfigurationBuilder()
IdentitySample.DefaultUI (1)
Startup.cs (1)
32public IConfigurationRoot Configuration { get; set; }
IdentitySample.Mvc (1)
Startup.cs (1)
25public IConfigurationRoot Configuration { get; set; }
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.Authentication.Test (6)
JwtBearerTests_Handler.cs (1)
996var config = new ConfigurationBuilder().AddInMemoryCollection(new[]
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.Components.WebAssembly (4)
Hosting\WebAssemblyHostConfiguration.cs (4)
32IEnumerable<IConfigurationProvider> IConfigurationRoot.Providers => new ReadOnlyCollection<IConfigurationProvider>(_providers.ToArray()); 169/// <see cref="IConfigurationRoot.Providers"/>. 171/// <returns>An <see cref="IConfigurationRoot"/> with keys and values from the registered providers.</returns> 172public IConfigurationRoot Build()
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
53IConfigurationRoot root = configuration;
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 (1)
Logging\HttpLoggingServiceExtensionsTests.cs (1)
42var configuration = builder.Build();
Microsoft.AspNetCore.HostFiltering.Tests (1)
HostFilteringMiddlewareTests.cs (1)
227var config = new ConfigurationBuilder().Add(new ReloadableMemorySource()).Build();
Microsoft.AspNetCore.Hosting (1)
WebHostBuilder.cs (1)
281var configuration = builder.Build();
Microsoft.AspNetCore.Hosting.Tests (21)
WebHostBuilderTests.cs (12)
299var config = new ConfigurationBuilder().AddInMemoryCollection(data).Build(); 381var config = configBuilder.Build(); 512var config = new ConfigurationBuilder() 538var config = new ConfigurationBuilder() 564var config = new ConfigurationBuilder() 573var overrideConfig = new ConfigurationBuilder() 600var config = configBuilder.Build(); 629var config = configBuilder.Build(); 650var config = configBuilder.Build(); 1320var config = new ConfigurationBuilder() 1484var config = builder.Build(); 1507var config = builder.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)
20var config = new ConfigurationBuilder()
Microsoft.AspNetCore.Identity.Test (5)
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.Server.Kestrel.Core.Tests (2)
KestrelServerTests.cs (2)
755var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[] 914var currentConfig = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.Server.Kestrel.Tests (61)
ConfigurationReaderTests.cs (21)
22var config = new ConfigurationBuilder().AddInMemoryCollection().Build(); 32var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 45var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 77var config = new 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 (37)
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(); 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[] 820var config = 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[] 1507var config = new ConfigurationBuilder().AddInMemoryCollection(new[] 1544var config = 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.Tests (4)
WebApplicationTests.cs (4)
1335Assert.Single(((IConfigurationRoot)app.Configuration).Providers.OfType<RandomConfigurationProvider>()); 2315Assert.Contains("foo=bar (MemoryConfigurationProvider)", ((IConfigurationRoot)app.Configuration).GetDebugView()); 2329((IConfigurationRoot)app.Configuration).Reload(); 2391Assert.Single(((IConfigurationRoot)app.Configuration).Providers.OfType<RandomConfigurationProvider>());
Microsoft.AspNetCore.WebSockets.Tests (1)
KestrelWebSocketHelpers.cs (1)
52var config = configBuilder.Build();
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
ApplicationMetadataExtensionsTests.cs (4)
36var config = new ConfigurationBuilder().Build(); 72var expectedConfig = new ConfigurationBuilder() 81var actualConfig = new ConfigurationBuilder().AddApplicationMetadata(_hostEnvironment.Object, nameof(ApplicationMetadata)).Build(); 98var config = new ConfigurationBuilder()
Microsoft.Extensions.Caching.SqlServer.Tests (1)
SqlServerCacheWithDatabaseTest.cs (1)
50var configuration = configurationBuilder.Build();
Microsoft.Extensions.Configuration (14)
ConfigurationBuilder.cs (2)
44/// <returns>An <see cref="IConfigurationRoot"/> with keys and values from the registered providers.</returns> 45public IConfigurationRoot Build()
ConfigurationManager.cs (5)
20/// It is both an <see cref="IConfigurationBuilder"/> and an <see cref="IConfigurationRoot"/>. 41/// Creates an empty mutable configuration object that is both an <see cref="IConfigurationBuilder"/> and an <see cref="IConfigurationRoot"/>. 81IEnumerable<IConfigurationProvider> IConfigurationRoot.Providers => _providerManager.NonReferenceCountedProviders; 98IConfigurationRoot IConfigurationBuilder.Build() => this; 102void IConfigurationRoot.Reload()
ConfigurationSection.cs (3)
18private readonly IConfigurationRoot _root; 27public ConfigurationSection(IConfigurationRoot root, string path) 37/// Gets the full path to this section from the <see cref="IConfigurationRoot"/>.
ConfigurationSectionDebugView.cs (2)
43internal static List<ConfigurationSectionDebugView> FromConfiguration(IConfiguration current, IConfigurationRoot root) 71internal static IConfigurationProvider? GetValueProvider(IConfigurationRoot root, string key)
InternalConfigurationRootExtensions.cs (2)
11/// Extensions method for <see cref="IConfigurationRoot"/> 21internal static IEnumerable<IConfigurationSection> GetChildrenImplementation(this IConfigurationRoot root, string? path)
Microsoft.Extensions.Configuration.Abstractions (6)
ConfigurationRootExtensions.cs (4)
12/// Provides extension methods for <see cref="IConfigurationRoot"/>. 20public static string GetDebugView(this IConfigurationRoot root) 36public static string GetDebugView(this IConfigurationRoot root, Func<ConfigurationDebugViewContext, string>? processValue) 82IConfigurationRoot root,
IConfigurationBuilder.cs (2)
35/// <returns>An <see cref="IConfigurationRoot"/> with keys and values from the registered sources.</returns> 36IConfigurationRoot Build();
Microsoft.Extensions.Configuration.KeyPerFile.Tests (22)
ConfigurationProviderTestBase.cs (6)
17var configRoot = BuildConfigRoot(LoadThroughProvider(TestSection.TestConfig)); 25var configRoot = BuildConfigRoot(LoadThroughProvider(TestSection.TestConfig)); 131var configuration = BuildConfigRoot(LoadThroughProvider(TestSection.TestConfig)); 174IConfigurationRoot config, 187IConfigurationRoot config, 328protected virtual IConfigurationRoot BuildConfigRoot(
KeyPerFileTests.cs (16)
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.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 (1)
ResourceMonitoringExtensionsTests.cs (1)
149var config = new ConfigurationBuilder()
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
54var configRoot = 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()
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[]