2 implementations of IConfigurationProvider
Microsoft.Extensions.Configuration (2)
ChainedConfigurationProvider.cs (1)
13public class ChainedConfigurationProvider : IConfigurationProvider, IDisposable
ConfigurationProvider.cs (1)
15public abstract class ConfigurationProvider : IConfigurationProvider
115 references to IConfigurationProvider
Microsoft.AspNetCore.Components.WebAssembly (11)
Hosting\WebAssemblyHostConfiguration.cs (11)
18private readonly List<IConfigurationProvider> _providers = new List<IConfigurationProvider>(); 32IEnumerable<IConfigurationProvider> IConfigurationRoot.Providers => new ReadOnlyCollection<IConfigurationProvider>(_providers.ToArray()); 36/// and the registered <see cref="IConfigurationProvider"/> instances. 52var provider = _providers[i]; 69foreach (var provider in _providers) 96foreach (var provider in _providers) 123foreach (var provider in _providers) 151var provider = source.Build(this); 187foreach (var provider in _providers)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
220public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.AspNetCore.HostFiltering.Tests (1)
HostFilteringMiddlewareTests.cs (1)
270public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.AspNetCore.Server.Kestrel.Tests (1)
KestrelConfigurationLoaderTests.cs (1)
376var configProvider = configRoot.Providers.Single();
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (2)
2877public IConfigurationProvider Build(IConfigurationBuilder builder) 3074public IConfigurationProvider Build(IConfigurationBuilder builder)
WebHostTests.cs (1)
160public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.AmbientMetadata.Application (2)
ApplicationMetadataSource.cs (2)
38/// Builds an <see cref="IConfigurationProvider"/> for the source. 42public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
ApplicationMetadataSourceTests.cs (1)
57var provider = sut.Build(configurationBuilder);
Microsoft.Extensions.Configuration (55)
ChainedConfigurationProvider.cs (4)
11/// Provides a chained implementation of <see cref="IConfigurationProvider"/>. 61/// Loads configuration values from the source represented by this <see cref="IConfigurationProvider"/>. 67/// <see cref="IConfigurationProvider"/> and the set of keys returned by all the preceding 68/// <see cref="IConfigurationProvider"/> objects.
ChainedConfigurationSource.cs (1)
30public IConfigurationProvider Build(IConfigurationBuilder builder)
ConfigurationBuilder.cs (3)
23/// and the registered <see cref="IConfigurationProvider"/> providers. 47var providers = new List<IConfigurationProvider>(); 50IConfigurationProvider provider = source.Build(this);
ConfigurationManager.cs (5)
81IEnumerable<IConfigurationProvider> IConfigurationRoot.Providers => _providerManager.NonReferenceCountedProviders; 106foreach (IConfigurationProvider provider in reference.Providers) 126IConfigurationProvider provider = source.Build(this); 142var newProvidersList = new List<IConfigurationProvider>(); 149foreach (IConfigurationProvider p in newProvidersList)
ConfigurationProvider.cs (1)
20/// Initializes a new <see cref="IConfigurationProvider"/>.
ConfigurationRoot.cs (12)
19private readonly IList<IConfigurationProvider> _providers; 26/// <param name="providers">The <see cref="IConfigurationProvider"/>s for this configuration.</param> 27public ConfigurationRoot(IList<IConfigurationProvider> providers) 33foreach (IConfigurationProvider p in providers) 41/// The <see cref="IConfigurationProvider"/>s for this configuration. 43public IEnumerable<IConfigurationProvider> Providers => _providers; 85foreach (IConfigurationProvider provider in _providers) 108foreach (IConfigurationProvider provider in _providers) 114internal static string? GetConfiguration(IList<IConfigurationProvider> providers, string key) 118IConfigurationProvider provider = providers[i]; 129internal static void SetConfiguration(IList<IConfigurationProvider> providers, string key, string? value) 136foreach (IConfigurationProvider provider in providers)
ConfigurationSection.cs (3)
114IConfigurationProvider? provider = Configuration.ConfigurationSectionDebugView.GetValueProvider(_root, Path); 126private readonly IConfigurationProvider? _provider; 137public IConfigurationProvider? Provider => _provider;
ConfigurationSectionDebugView.cs (5)
16public ConfigurationSectionDebugView(IConfigurationSection section, string path, IConfigurationProvider? provider) 27public IConfigurationProvider? Provider { get; } 56IConfigurationProvider? provider = GetValueProvider(root, section.Path); 71internal static IConfigurationProvider? GetValueProvider(IConfigurationRoot root, string key) 73foreach (IConfigurationProvider provider in root.Providers.Reverse())
InternalConfigurationRootExtensions.cs (1)
24IEnumerable<IConfigurationProvider> providers = reference?.Providers ?? root.Providers;
MemoryConfigurationSource.cs (1)
23public IConfigurationProvider Build(IConfigurationBuilder builder)
ReferenceCountedProviders.cs (12)
14public static ReferenceCountedProviders Create(List<IConfigurationProvider> providers) => new ActiveReferenceCountedProviders(providers); 19public static ReferenceCountedProviders CreateDisposed(List<IConfigurationProvider> providers) => new DisposedReferenceCountedProviders(providers); 21public abstract List<IConfigurationProvider> Providers { get; set; } 26public abstract List<IConfigurationProvider> NonReferenceCountedProviders { get; } 37private volatile List<IConfigurationProvider> _providers; 39public ActiveReferenceCountedProviders(List<IConfigurationProvider> providers) 44public override List<IConfigurationProvider> Providers 58public override List<IConfigurationProvider> NonReferenceCountedProviders => _providers; 71foreach (IConfigurationProvider provider in _providers) 81public DisposedReferenceCountedProviders(List<IConfigurationProvider> providers) 86public override List<IConfigurationProvider> Providers { get; set; } 87public override List<IConfigurationProvider> NonReferenceCountedProviders => Providers;
ReferenceCountedProvidersManager.cs (5)
15private ReferenceCountedProviders _refCountedProviders = ReferenceCountedProviders.Create(new List<IConfigurationProvider>()); 19public IEnumerable<IConfigurationProvider> NonReferenceCountedProviders => _refCountedProviders.NonReferenceCountedProviders; 41public void ReplaceProviders(List<IConfigurationProvider> providers) 61public void AddProvider(IConfigurationProvider provider) 71_refCountedProviders.Providers = new List<IConfigurationProvider>(_refCountedProviders.Providers)
StreamConfigurationSource.cs (2)
24/// <returns>An <see cref="IConfigurationProvider"/> instance.</returns> 25public abstract IConfigurationProvider Build(IConfigurationBuilder builder);
Microsoft.Extensions.Configuration.Abstractions (16)
ConfigurationDebugViewContext.cs (4)
17/// <param name="configurationProvider">The <see cref="IConfigurationProvider" /> to use to get the value of the current item.</param> 18public ConfigurationDebugViewContext(string path, string key, string? value, IConfigurationProvider configurationProvider) 42/// Gets the <see cref="IConfigurationProvider" /> that was used to get the value of the current item. 44public IConfigurationProvider ConfigurationProvider { get; }
ConfigurationRootExtensions.cs (3)
45(string? Value, IConfigurationProvider? Provider) valueAndProvider = GetValueAndProvider(root, child.Path); 81private static (string? Value, IConfigurationProvider? Provider) GetValueAndProvider( 85foreach (IConfigurationProvider provider in root.Providers.Reverse())
IConfigurationProvider.cs (3)
36/// Loads configuration values from the source represented by this <see cref="IConfigurationProvider"/>. 42/// <see cref="IConfigurationProvider"/> and the set of keys returned by all the preceding 43/// <see cref="IConfigurationProvider"/> providers.
IConfigurationRoot.cs (3)
14/// Forces the configuration values to be reloaded from the underlying <see cref="IConfigurationProvider"/> providers. 19/// Gets the <see cref="IConfigurationProvider"/> providers for this configuration. 21IEnumerable<IConfigurationProvider> Providers { get; }
IConfigurationSource.cs (3)
14/// Builds the <see cref="IConfigurationProvider"/> for this source. 17/// <returns>An <see cref="IConfigurationProvider"/></returns> 18IConfigurationProvider Build(IConfigurationBuilder builder);
Microsoft.Extensions.Configuration.CommandLine (4)
CommandLineConfigurationExtensions.cs (3)
16/// Adds a <see cref="CommandLineConfigurationProvider"/> <see cref="IConfigurationProvider"/> 72/// Adds a <see cref="CommandLineConfigurationProvider"/> <see cref="IConfigurationProvider"/> that reads 162/// Adds an <see cref="IConfigurationProvider"/> that reads configuration values from the command line.
CommandLineConfigurationSource.cs (1)
29public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.EnvironmentVariables (4)
EnvironmentVariablesConfigurationSource.cs (1)
21public IConfigurationProvider Build(IConfigurationBuilder builder)
EnvironmentVariablesExtensions.cs (3)
15/// Adds an <see cref="IConfigurationProvider"/> that reads configuration values from environment variables. 26/// Adds an <see cref="IConfigurationProvider"/> that reads configuration values from environment variables 41/// Adds an <see cref="IConfigurationProvider"/> that reads configuration values from environment variables.
Microsoft.Extensions.Configuration.FileExtensions (2)
FileConfigurationSource.cs (2)
54/// Builds the <see cref="IConfigurationProvider"/> for this source. 58public abstract IConfigurationProvider Build(IConfigurationBuilder builder);
Microsoft.Extensions.Configuration.Ini (2)
IniConfigurationSource.cs (1)
25public override IConfigurationProvider Build(IConfigurationBuilder builder)
IniStreamConfigurationSource.cs (1)
25public override IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationSource.cs (1)
18public override IConfigurationProvider Build(IConfigurationBuilder builder)
JsonStreamConfigurationSource.cs (1)
16public override IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationSource.cs (1)
64public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.KeyPerFile.Tests (4)
ConfigurationProviderCommandLineTest.cs (1)
14protected override (IConfigurationProvider Provider, Action Initializer) LoadThroughProvider(
ConfigurationProviderTestBase.cs (3)
326protected abstract (IConfigurationProvider Provider, Action Initializer) LoadThroughProvider(TestSection testConfig); 329params (IConfigurationProvider Provider, Action Initializer)[] providers) 341protected static (IConfigurationProvider Provider, Action Initializer) LoadUsingMemoryProvider(TestSection testConfig)
Microsoft.Extensions.Configuration.Xml (2)
XmlConfigurationSource.cs (1)
20public override IConfigurationProvider Build(IConfigurationBuilder builder)
XmlStreamConfigurationSource.cs (1)
20public override IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Http.Resilience.Tests (2)
Helpers\ConfigurationStubFactory.cs (1)
33public IConfigurationProvider Build(IConfigurationBuilder builder)
Routing\RoutingStrategyTest.cs (1)
185public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Telemetry.Tests (1)
Logging\TestConfiguration.cs (1)
25return new ConfigurationRoot(new List<IConfigurationProvider> { provider });