15 implementations of IConfigurationSource
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
218private class CustomizedTestConfigurationSource : IConfigurationSource
Microsoft.AspNetCore.HostFiltering.Tests (1)
HostFilteringMiddlewareTests.cs (1)
268private class ReloadableMemorySource : IConfigurationSource
Microsoft.AspNetCore.Tests (3)
WebApplicationTests.cs (2)
2871public class RandomConfigurationSource : IConfigurationSource 3072private class ReloadableMemorySource : IConfigurationSource
WebHostTests.cs (1)
158private class ReloadableMemorySource : IConfigurationSource
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataSource.cs (1)
15internal sealed class ApplicationMetadataSource : IConfigurationSource
Microsoft.Extensions.Configuration (3)
ChainedConfigurationSource.cs (1)
11public class ChainedConfigurationSource : IConfigurationSource
MemoryConfigurationSource.cs (1)
11public class MemoryConfigurationSource : IConfigurationSource
StreamConfigurationSource.cs (1)
12public abstract class StreamConfigurationSource : IConfigurationSource
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationSource.cs (1)
12public class CommandLineConfigurationSource : IConfigurationSource
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationSource.cs (1)
9public class EnvironmentVariablesConfigurationSource : IConfigurationSource
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
14public abstract class FileConfigurationSource : IConfigurationSource
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationSource.cs (1)
12public class KeyPerFileConfigurationSource : IConfigurationSource
Microsoft.Extensions.Http.Resilience.Tests (2)
Helpers\ConfigurationStubFactory.cs (1)
31private class ReloadableConfiguration : ConfigurationProvider, IConfigurationSource
Routing\RoutingStrategyTest.cs (1)
183private class ReloadableConfiguration : ConfigurationProvider, IConfigurationSource
43 references to IConfigurationSource
Aspire.Dashboard.Tests (1)
Integration\IntegrationTestHelpers.cs (1)
90foreach (var item in sources.ToList())
Microsoft.AspNetCore.Components.WebAssembly (5)
Hosting\WebAssemblyHostConfiguration.cs (5)
19private readonly List<IConfigurationSource> _sources = new List<IConfigurationSource>(); 27IList<IConfigurationSource> IConfigurationBuilder.Sources => new ReadOnlyCollection<IConfigurationSource>(_sources.ToArray()); 143public IConfigurationBuilder Add(IConfigurationSource source)
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostTests.cs (2)
1000var sourceMock = new Mock<IConfigurationSource>(); 1024var sourceMock = new Mock<IConfigurationSource>();
Microsoft.Extensions.Configuration (22)
ChainedConfigurationSource.cs (1)
9/// Represents a chained <see cref="IConfiguration"/> as an <see cref="IConfigurationSource"/>.
ConfigurationBuilder.cs (4)
14private readonly List<IConfigurationSource> _sources = new(); 19public IList<IConfigurationSource> Sources => _sources; 32public IConfigurationBuilder Add(IConfigurationSource source) 48foreach (IConfigurationSource source in _sources)
ConfigurationManager.cs (16)
76public IList<IConfigurationSource> Sources => _sources; 90IConfigurationBuilder IConfigurationBuilder.Add(IConfigurationSource source) 124private void AddSource(IConfigurationSource source) 144foreach (IConfigurationSource source in _sources) 186private sealed class ConfigurationSources : IList<IConfigurationSource> 188private readonly List<IConfigurationSource> _sources = new(); 196public IConfigurationSource this[int index] 210public void Add(IConfigurationSource source) 222public bool Contains(IConfigurationSource source) 227public void CopyTo(IConfigurationSource[] array, int arrayIndex) 232public List<IConfigurationSource>.Enumerator GetEnumerator() => _sources.GetEnumerator(); 234public int IndexOf(IConfigurationSource source) 239public void Insert(int index, IConfigurationSource source) 245public bool Remove(IConfigurationSource source) 260IEnumerator<IConfigurationSource> IEnumerable<IConfigurationSource>.GetEnumerator() => GetEnumerator();
MemoryConfigurationSource.cs (1)
9/// Represents in-memory data as an <see cref="IConfigurationSource"/>.
Microsoft.Extensions.Configuration.Abstractions (4)
ConfigurationExtensions.cs (1)
22public static IConfigurationBuilder Add<TSource>(this IConfigurationBuilder builder, Action<TSource>? configureSource) where TSource : IConfigurationSource, new()
IConfigurationBuilder.cs (3)
15/// and the registered <see cref="IConfigurationSource"/>s. 22IList<IConfigurationSource> Sources { get; } 29IConfigurationBuilder Add(IConfigurationSource source);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationSource.cs (1)
10/// Represents command-line arguments as an <see cref="IConfigurationSource"/>.
Microsoft.Extensions.Configuration.EnvironmentVariables (1)
EnvironmentVariablesConfigurationSource.cs (1)
7/// Represents environment variables as an <see cref="IConfigurationSource"/>.
Microsoft.Extensions.Configuration.FileExtensions (1)
FileConfigurationSource.cs (1)
12/// Provides the base class for file-based <see cref="IConfigurationSource"/>.
Microsoft.Extensions.Configuration.Ini (2)
IniConfigurationSource.cs (1)
7/// Represents an INI file as an <see cref="IConfigurationSource"/>.
IniStreamConfigurationSource.cs (1)
7/// Represents an INI stream as an <see cref="IConfigurationSource"/>.
Microsoft.Extensions.Configuration.Json (2)
JsonConfigurationSource.cs (1)
9/// Represents a JSON file as an <see cref="IConfigurationSource"/>.
JsonStreamConfigurationSource.cs (1)
7/// Represents a JSON file as an <see cref="IConfigurationSource"/>.
Microsoft.Extensions.Configuration.KeyPerFile (1)
KeyPerFileConfigurationSource.cs (1)
10/// An <see cref="IConfigurationSource"/> used to configure <see cref="KeyPerFileConfigurationProvider"/>.
Microsoft.Extensions.Configuration.Xml (1)
XmlStreamConfigurationSource.cs (1)
9/// Represents an XML file as an <see cref="IConfigurationSource"/>.