3 implementations of Add
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
143public IConfigurationBuilder Add(IConfigurationSource source)
Microsoft.Extensions.Configuration (2)
ConfigurationBuilder.cs (1)
32public IConfigurationBuilder Add(IConfigurationSource source)
ConfigurationManager.cs (1)
90IConfigurationBuilder IConfigurationBuilder.Add(IConfigurationSource source)
16 references to Add
Microsoft.AspNetCore.Hosting.Tests (2)
WebHostTests.cs (2)
1007configuration.Add(sourceMock.Object); 1031configuration.Add(sourceMock.Object);
Microsoft.AspNetCore.Tests (5)
WebApplicationTests.cs (4)
1296hostBuilder.ConfigureHostConfiguration(config => config.Add(hostConfigSource)); 1297hostBuilder.ConfigureAppConfiguration(config => config.Add(appConfigSource)); 1329hostBuilder.ConfigureAppConfiguration(config => config.Add(new RandomConfigurationSource())); 1358configBuilder.Add(new ReloadableMemorySource());
WebHostTests.cs (1)
36configBuilder.Add(new ReloadableMemorySource());
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataConfigurationBuilderExtensions.cs (1)
33return builder.Add(new ApplicationMetadataSource(hostEnvironment, sectionName));
Microsoft.Extensions.Configuration (3)
ChainedBuilderExtensions.cs (1)
35configurationBuilder.Add(new ChainedConfigurationSource
MemoryConfigurationBuilderExtensions.cs (2)
24configurationBuilder.Add(new MemoryConfigurationSource()); 40configurationBuilder.Add(new MemoryConfigurationSource { InitialData = initialData });
Microsoft.Extensions.Configuration.Abstractions (1)
ConfigurationExtensions.cs (1)
26return builder.Add(source);
Microsoft.Extensions.Configuration.CommandLine (1)
CommandLineConfigurationExtensions.cs (1)
157configurationBuilder.Add(new CommandLineConfigurationSource { Args = args, SwitchMappings = switchMappings });
Microsoft.Extensions.Configuration.EnvironmentVariables (2)
EnvironmentVariablesExtensions.cs (2)
21configurationBuilder.Add(new EnvironmentVariablesConfigurationSource()); 36configurationBuilder.Add(new EnvironmentVariablesConfigurationSource { Prefix = prefix });
Microsoft.Extensions.Hosting.Testing (1)
FakeHostingExtensions.cs (1)
186_ = builder.Add(new FakeConfigurationSource(new KeyValuePair<string, string?>(key, value)));