1 interface inheriting from IConfigurationBuilder
Microsoft.Extensions.Configuration.Abstractions (1)
IConfigurationManager.cs (1)
13public interface IConfigurationManager : IConfiguration, IConfigurationBuilder
2 implementations of IConfigurationBuilder
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
16public class WebAssemblyHostConfiguration : IConfiguration, IConfigurationRoot, IConfigurationBuilder
Microsoft.Extensions.Configuration (1)
ConfigurationBuilder.cs (1)
12public class ConfigurationBuilder : IConfigurationBuilder
357 references to IConfigurationBuilder
Aspire.Dashboard.Tests (1)
Integration\IntegrationTestHelpers.cs (1)
89var sources = ((IConfigurationBuilder)builder.Configuration).Sources;
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
691MetadataReference.CreateFromFile(typeof(IConfigurationBuilder).Assembly.Location),
IdentitySample.DefaultUI (1)
Startup.cs (1)
23var builder = new ConfigurationBuilder()
IdentitySample.Mvc (1)
Startup.cs (1)
16var builder = new ConfigurationBuilder()
Microsoft.AspNetCore (7)
BootstrapHostBuilder.cs (4)
16private readonly List<Action<IConfigurationBuilder>> _configureHostActions = new(); 17private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppActions = new(); 43public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) 49public IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate)
ConfigureHostBuilder.cs (2)
44public IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate) 62public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate)
ConfigureWebHostBuilder.cs (1)
37public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate)
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
101TrimAssemblyExtension(typeof(Microsoft.Extensions.Configuration.IConfigurationBuilder).Assembly.Location),
Microsoft.AspNetCore.BrowserTesting (1)
BrowserTestBase.cs (1)
48var builder = new ConfigurationBuilder()
Microsoft.AspNetCore.Components.WebAssembly (5)
Hosting\WebAssemblyHostConfiguration.cs (5)
27IList<IConfigurationSource> IConfigurationBuilder.Sources => new ReadOnlyCollection<IConfigurationSource>(_sources.ToArray()); 35/// Gets a key/value collection that can be used to share data between the <see cref="IConfigurationBuilder"/> 41IDictionary<string, object> IConfigurationBuilder.Properties { get; } = new Dictionary<string, object>(); 142/// <returns>The same <see cref="IConfigurationBuilder"/>.</returns> 143public IConfigurationBuilder Add(IConfigurationSource source)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
220public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\HttpLoggingServiceExtensionsTests.cs (1)
35var builder = new ConfigurationBuilder().AddInMemoryCollection(new[]
Microsoft.AspNetCore.HostFiltering.Tests (1)
HostFilteringMiddlewareTests.cs (1)
270public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.AspNetCore.Hosting (15)
GenericHost\HostingStartupWebHostBuilder.cs (3)
18private Action<WebHostBuilderContext, IConfigurationBuilder>? _configureConfiguration; 31public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate) 61public void ConfigureAppConfiguration(WebHostBuilderContext context, IConfigurationBuilder builder)
GenericHost\WebHostBuilderBase.cs (2)
18var configBuilder = new ConfigurationBuilder() 34public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate)
WebHostBuilder.cs (6)
32private Action<WebHostBuilderContext, IConfigurationBuilder>? _configureAppConfigurationBuilder; 112/// Adds a delegate for configuring the <see cref="IConfigurationBuilder"/> that will construct an <see cref="IConfiguration"/>. 114/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder" /> that will be used to construct an <see cref="IConfiguration" />.</param> 118/// The <see cref="IConfigurationBuilder"/> is pre-populated with the settings of the <see cref="IWebHostBuilder"/>. 120public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate) 275var builder = new ConfigurationBuilder()
WebHostBuilderExtensions.cs (4)
210/// Adds a delegate for configuring the <see cref="IConfigurationBuilder"/> that will construct an <see cref="IConfiguration"/>. 213/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder" /> that will be used to construct an <see cref="IConfiguration" />.</param> 217/// The <see cref="IConfigurationBuilder"/> is pre-populated with the settings of the <see cref="IWebHostBuilder"/>. 219public static IWebHostBuilder ConfigureAppConfiguration(this IWebHostBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate)
Microsoft.AspNetCore.Hosting.Abstractions (4)
IWebHostBuilder.cs (4)
21/// Adds a delegate for configuring the <see cref="IConfigurationBuilder"/> that will construct an <see cref="IConfiguration"/>. 23/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder" /> that will be used to construct an <see cref="IConfiguration" />.</param> 27/// The <see cref="IConfigurationBuilder"/> is pre-populated with the settings of the <see cref="IWebHostBuilder"/>. 29IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate);
Microsoft.AspNetCore.Hosting.Tests (10)
Fakes\GenericWebHostBuilderWrapper.cs (1)
42public IWebHostBuilder ConfigureAppConfiguration(Action<WebHostBuilderContext, IConfigurationBuilder> configureDelegate)
WebHostBuilderTests.cs (5)
598var configBuilder = new ConfigurationBuilder() 627var configBuilder = new ConfigurationBuilder() 648var configBuilder = new ConfigurationBuilder() 1482var builder = new ConfigurationBuilder() 1505var builder = new ConfigurationBuilder()
WebHostTests.cs (4)
818var builder = new ConfigurationBuilder() 841var builder = new ConfigurationBuilder() 1001sourceMock.Setup(s => s.Build(It.IsAny<IConfigurationBuilder>())) 1025sourceMock.Setup(s => s.Build(It.IsAny<IConfigurationBuilder>()))
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (1)
Utilities\TestEnvironment.cs (1)
14var configBuilder = new ConfigurationBuilder()
Microsoft.AspNetCore.Mvc.Testing (2)
DeferredHostBuilder.cs (2)
56public IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate) 68public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate)
Microsoft.AspNetCore.Tests (9)
WebApplicationTests.cs (8)
2282((IConfigurationBuilder)builder.Configuration).Sources.Clear(); 2324((IConfigurationBuilder)builder.Configuration).Sources.Add(new RandomConfigurationSource()); 2342((IConfigurationBuilder)builder.Configuration).Sources.Add(configSource); 2356((IConfigurationBuilder)builder.Configuration).Sources.Add(configSource); 2370((IConfigurationBuilder)builder.Configuration).Sources.Add(configSource); 2387((IConfigurationBuilder)builder.Configuration).Sources.Add(new RandomConfigurationSource()); 2877public IConfigurationProvider Build(IConfigurationBuilder builder) 3074public IConfigurationProvider Build(IConfigurationBuilder builder)
WebHostTests.cs (1)
160public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.AmbientMetadata.Application (4)
ApplicationMetadataConfigurationBuilderExtensions.cs (2)
27public static IConfigurationBuilder AddApplicationMetadata(this IConfigurationBuilder builder, IHostEnvironment hostEnvironment, string sectionName = DefaultSectionName)
ApplicationMetadataSource.cs (2)
40/// <param name="builder">The <see cref="IConfigurationBuilder" /> to add to.</param> 42public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.AmbientMetadata.Application.Tests (1)
ApplicationMetadataExtensionsTests.cs (1)
44Assert.Throws<ArgumentNullException>(() => ((IConfigurationBuilder)null!).AddApplicationMetadata(null!));
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
16public static IConfigurationSection GetRedactorConfiguration(IConfigurationBuilder builder, int keyId, string key)
Microsoft.Extensions.Configuration (32)
ChainedBuilderExtensions.cs (9)
10/// Provides extension methods for adding <see cref="IConfiguration"/> to an <see cref="IConfigurationBuilder"/>. 17/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 19/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 20public static IConfigurationBuilder AddConfiguration(this IConfigurationBuilder configurationBuilder, IConfiguration config) 26/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 29/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 30public static IConfigurationBuilder AddConfiguration(this IConfigurationBuilder configurationBuilder, IConfiguration config, bool shouldDisposeConfiguration)
ChainedConfigurationSource.cs (2)
28/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 30public IConfigurationProvider Build(IConfigurationBuilder builder)
ConfigurationBuilder.cs (3)
22/// Gets a key/value collection that can be used to share data between the <see cref="IConfigurationBuilder"/> 31/// <returns>The same <see cref="IConfigurationBuilder"/>.</returns> 32public IConfigurationBuilder Add(IConfigurationSource source)
ConfigurationManager.cs (6)
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"/>. 73IDictionary<string, object> IConfigurationBuilder.Properties => _properties; 90IConfigurationBuilder IConfigurationBuilder.Add(IConfigurationSource source) 98IConfigurationRoot IConfigurationBuilder.Build() => this;
MemoryConfigurationBuilderExtensions.cs (8)
18/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 19/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 20public static IConfigurationBuilder AddInMemoryCollection(this IConfigurationBuilder configurationBuilder) 31/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 33/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 34public static IConfigurationBuilder AddInMemoryCollection( 35this IConfigurationBuilder configurationBuilder,
MemoryConfigurationSource.cs (2)
21/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 23public IConfigurationProvider Build(IConfigurationBuilder builder)
StreamConfigurationSource.cs (2)
23/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 25public abstract IConfigurationProvider Build(IConfigurationBuilder builder);
Microsoft.Extensions.Configuration.Abstractions (9)
ConfigurationExtensions.cs (3)
21/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 22public static IConfigurationBuilder Add<TSource>(this IConfigurationBuilder builder, Action<TSource>? configureSource) where TSource : IConfigurationSource, new()
IConfigurationBuilder.cs (3)
14/// Gets a key/value collection that can be used to share data between the <see cref="IConfigurationBuilder"/> 28/// <returns>The same <see cref="IConfigurationBuilder"/>.</returns> 29IConfigurationBuilder Add(IConfigurationSource source);
IConfigurationManager.cs (1)
10/// It is both an <see cref="IConfigurationBuilder"/> and an <see cref="IConfiguration"/>.
IConfigurationSource.cs (2)
16/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 18IConfigurationProvider Build(IConfigurationBuilder builder);
Microsoft.Extensions.Configuration.CommandLine (15)
CommandLineConfigurationExtensions.cs (13)
11/// Extension methods for registering <see cref="CommandLineConfigurationProvider"/> with <see cref="IConfigurationBuilder"/>. 19/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 21/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 66public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder configurationBuilder, string[] args) 75/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 81/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 152public static IConfigurationBuilder AddCommandLine( 153this IConfigurationBuilder configurationBuilder, 164/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 166/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 167public static IConfigurationBuilder AddCommandLine(this IConfigurationBuilder builder, Action<CommandLineConfigurationSource>? configureSource)
CommandLineConfigurationSource.cs (2)
27/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 29public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.EnvironmentVariables (15)
EnvironmentVariablesConfigurationSource.cs (2)
19/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 21public IConfigurationProvider Build(IConfigurationBuilder builder)
EnvironmentVariablesExtensions.cs (13)
10/// Provides extension methods for registering <see cref="EnvironmentVariablesConfigurationProvider"/> with <see cref="IConfigurationBuilder"/>. 17/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 18/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 19public static IConfigurationBuilder AddEnvironmentVariables(this IConfigurationBuilder configurationBuilder) 29/// <param name="configurationBuilder">The <see cref="IConfigurationBuilder"/> to add to.</param> 31/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 32public static IConfigurationBuilder AddEnvironmentVariables( 33this IConfigurationBuilder configurationBuilder, 43/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 45/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 46public static IConfigurationBuilder AddEnvironmentVariables(this IConfigurationBuilder builder, Action<EnvironmentVariablesConfigurationSource>? configureSource)
Microsoft.Extensions.Configuration.FileExtensions (20)
FileConfigurationExtensions.cs (16)
20/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 22/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 23public static IConfigurationBuilder SetFileProvider(this IConfigurationBuilder builder, IFileProvider fileProvider) 35/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 37public static IFileProvider GetFileProvider(this IConfigurationBuilder builder) 52/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 54/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 55public static IConfigurationBuilder SetBasePath(this IConfigurationBuilder builder, string basePath) 66/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 68/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 69public static IConfigurationBuilder SetFileLoadExceptionHandler(this IConfigurationBuilder builder, Action<FileLoadExceptionContext> handler) 80/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 82public static Action<FileLoadExceptionContext>? GetFileLoadExceptionHandler(this IConfigurationBuilder builder)
FileConfigurationSource.cs (4)
56/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 58public abstract IConfigurationProvider Build(IConfigurationBuilder builder); 63/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 64public void EnsureDefaults(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.Ini (32)
IniConfigurationExtensions.cs (28)
19/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 21/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 22/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 23public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, string path) 31/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 33/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 35/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 36public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, string path, bool optional) 44/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 46/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 49/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 50public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange) 58/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 61/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 64/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 65public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange) 87/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 89/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 90public static IConfigurationBuilder AddIniFile(this IConfigurationBuilder builder, Action<IniConfigurationSource>? configureSource) 96/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 98/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 99public static IConfigurationBuilder AddIniStream(this IConfigurationBuilder builder, Stream stream)
IniConfigurationSource.cs (2)
23/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 25public override IConfigurationProvider Build(IConfigurationBuilder builder)
IniStreamConfigurationSource.cs (2)
23/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 25public override IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.Json (32)
JsonConfigurationExtensions.cs (28)
19/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 21/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 22/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 23public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path) 31/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 33/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 35/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 36public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path, bool optional) 44/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 46/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 49/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 50public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange) 58/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 61/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 64/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 65public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange) 87/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 89/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 90public static IConfigurationBuilder AddJsonFile(this IConfigurationBuilder builder, Action<JsonConfigurationSource>? configureSource) 96/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 98/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 99public static IConfigurationBuilder AddJsonStream(this IConfigurationBuilder builder, Stream stream)
JsonConfigurationSource.cs (2)
16/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 18public override IConfigurationProvider Build(IConfigurationBuilder builder)
JsonStreamConfigurationSource.cs (2)
14/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 16public override IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.KeyPerFile (19)
KeyPerFileConfigurationBuilderExtensions.cs (17)
12/// Extension methods for registering <see cref="KeyPerFileConfigurationProvider"/> with <see cref="IConfigurationBuilder"/>. 20/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 22/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 23public static IConfigurationBuilder AddKeyPerFile(this IConfigurationBuilder builder, string directoryPath) 30/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 33/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 34public static IConfigurationBuilder AddKeyPerFile(this IConfigurationBuilder builder, string directoryPath, bool optional) 41/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 45/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 46public static IConfigurationBuilder AddKeyPerFile(this IConfigurationBuilder builder, string directoryPath, bool optional, bool reloadOnChange) 62/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 64/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 65public static IConfigurationBuilder AddKeyPerFile(this IConfigurationBuilder builder, Action<KeyPerFileConfigurationSource> configureSource)
KeyPerFileConfigurationSource.cs (2)
62/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 64public IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Configuration.UserSecrets (20)
UserSecretsConfigurationExtensions.cs (20)
30public static IConfigurationBuilder AddUserSecrets<T>(this IConfigurationBuilder configuration) 48public static IConfigurationBuilder AddUserSecrets<T>(this IConfigurationBuilder configuration, bool optional) 67public static IConfigurationBuilder AddUserSecrets<T>(this IConfigurationBuilder configuration, bool optional, bool reloadOnChange) 84public static IConfigurationBuilder AddUserSecrets(this IConfigurationBuilder configuration, Assembly assembly) 101public static IConfigurationBuilder AddUserSecrets(this IConfigurationBuilder configuration, Assembly assembly, bool optional) 119public static IConfigurationBuilder AddUserSecrets(this IConfigurationBuilder configuration, Assembly assembly, bool optional, bool reloadOnChange) 149public static IConfigurationBuilder AddUserSecrets(this IConfigurationBuilder configuration, string userSecretsId) 164public static IConfigurationBuilder AddUserSecrets(this IConfigurationBuilder configuration, string userSecretsId, bool reloadOnChange) 167private static IConfigurationBuilder AddUserSecretsInternal(IConfigurationBuilder configuration, string userSecretsId, bool optional, bool reloadOnChange) 175private static IConfigurationBuilder AddSecretsFile(IConfigurationBuilder configuration, string secretPath, bool optional, bool reloadOnChange)
Microsoft.Extensions.Configuration.Xml (32)
XmlConfigurationExtensions.cs (28)
20/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 22/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 23/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 26public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path) 34/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 36/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 38/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 41public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path, bool optional) 49/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 51/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 54/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 57public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, string path, bool optional, bool reloadOnChange) 65/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 68/// <see cref="IConfigurationBuilder.Properties"/> of <paramref name="builder"/>.</param> 71/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 74public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, IFileProvider? provider, string path, bool optional, bool reloadOnChange) 96/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 98/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 101public static IConfigurationBuilder AddXmlFile(this IConfigurationBuilder builder, Action<XmlConfigurationSource>? configureSource) 107/// <param name="builder">The <see cref="IConfigurationBuilder"/> to add to.</param> 109/// <returns>The <see cref="IConfigurationBuilder"/>.</returns> 112public static IConfigurationBuilder AddXmlStream(this IConfigurationBuilder builder, Stream stream)
XmlConfigurationSource.cs (2)
18/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 20public override IConfigurationProvider Build(IConfigurationBuilder builder)
XmlStreamConfigurationSource.cs (2)
18/// <param name="builder">The <see cref="IConfigurationBuilder"/>.</param> 20public override IConfigurationProvider Build(IConfigurationBuilder builder)
Microsoft.Extensions.Hosting (26)
HostApplicationBuilder.cs (6)
258private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new(); 259private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new(); 281foreach (Action<IConfigurationBuilder> configureHostAction in _configureHostConfigActions) 306foreach (Action<HostBuilderContext, IConfigurationBuilder> configureAppAction in _configureAppConfigActions) 344public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) 352public IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate)
HostBuilder.cs (14)
28private readonly List<Action<IConfigurationBuilder>> _configureHostConfigActions = new List<Action<IConfigurationBuilder>>(); 29private readonly List<Action<HostBuilderContext, IConfigurationBuilder>> _configureAppConfigActions = new List<Action<HostBuilderContext, IConfigurationBuilder>>(); 60/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder"/> that will be used 63public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) 76/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder"/> that will be used 79public IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate) 90/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder"/> that will be used 136/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder"/> that will be used 210IConfigurationBuilder configBuilder = new ConfigurationBuilder() 213foreach (Action<IConfigurationBuilder> buildAction in _configureHostConfigActions) 279IConfigurationBuilder configBuilder = new ConfigurationBuilder() 283foreach (Action<HostBuilderContext, IConfigurationBuilder> buildAction in _configureAppConfigActions)
HostingHostBuilderExtensions.cs (6)
143/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder"/> that will be used 146public static IHostBuilder ConfigureAppConfiguration(this IHostBuilder hostBuilder, Action<IConfigurationBuilder> configureDelegate) 202private static void ApplyDefaultHostConfiguration(IConfigurationBuilder hostConfigBuilder, string[]? args) 210internal static void SetDefaultContentRoot(IConfigurationBuilder hostConfigBuilder) 236internal static void ApplyDefaultAppConfiguration(HostBuilderContext hostingContext, IConfigurationBuilder appConfigBuilder, string[]? args) 265internal static void AddCommandLineConfig(IConfigurationBuilder configBuilder, string[]? args)
Microsoft.Extensions.Hosting.Abstractions (4)
IHostBuilder.cs (4)
25/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder"/> that will be used 28IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate); 35/// <param name="configureDelegate">The delegate for configuring the <see cref="IConfigurationBuilder"/> that will be used 38IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate);
Microsoft.Extensions.Hosting.Testing (3)
FakeHostBuilder.cs (2)
62public IHostBuilder ConfigureHostConfiguration(Action<IConfigurationBuilder> configureDelegate) 67public IHostBuilder ConfigureAppConfiguration(Action<HostBuilderContext, IConfigurationBuilder> configureDelegate)
FakeHostingExtensions.cs (1)
178private static void ConfigureConfiguration(IConfigurationBuilder builder, string key, string value)
Microsoft.Extensions.Hosting.Testing.Tests (9)
FakeHostBuilderTests.cs (2)
62var configurationDelegate = (IConfigurationBuilder _) => { }; 75var configurationDelegate = (HostBuilderContext _, IConfigurationBuilder _) => { };
HostingFakesExtensionsTests.cs (7)
118.Setup(x => x.ConfigureAppConfiguration(It.IsAny<Action<HostBuilderContext, IConfigurationBuilder>>())) 329IConfigurationBuilder? appConfigBuilder = null, 330IConfigurationBuilder? hostConfigBuilder = null) 337.Setup(x => x.ConfigureAppConfiguration(It.IsAny<Action<HostBuilderContext, IConfigurationBuilder>>())) 339.Callback<Action<HostBuilderContext?, IConfigurationBuilder>>(configure => configure(null, appConfigBuilder)); 345.Setup(x => x.ConfigureHostConfiguration(It.IsAny<Action<IConfigurationBuilder>>())) 347.Callback<Action<IConfigurationBuilder>>(configure => configure(hostConfigBuilder));
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.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?>
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()