4 implementations of GetChildren
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
92IEnumerable<IConfigurationSection> IConfiguration.GetChildren()
Microsoft.Extensions.Configuration (3)
ConfigurationManager.cs (1)
71public IEnumerable<IConfigurationSection> GetChildren() => this.GetChildrenImplementation(null);
ConfigurationRoot.cs (1)
60public IEnumerable<IConfigurationSection> GetChildren() => this.GetChildrenImplementation(null);
ConfigurationSection.cs (1)
95public IEnumerable<IConfigurationSection> GetChildren() => _root.GetChildrenImplementation(Path);
53 references to GetChildren
Aspire.Hosting (1)
ProjectResourceBuilderExtensions.cs (1)
346var kestrelEndpoints = options.ExcludeKestrelEndpoints ? [] : config.GetSection("Kestrel:Endpoints").GetChildren();
Aspire.Hosting.Azure (1)
Provisioning\Provisioners\BicepProvisioner.cs (1)
72foreach (var item in section.GetSection("SecretOutputs").GetChildren())
DefaultBuilder.SampleApp (1)
Startup.cs (1)
54foreach (var pair in config.GetChildren())
Kestrel.SampleApp (1)
Startup.cs (1)
189foreach (var pair in config.GetChildren())
Microsoft.AspNetCore.Authentication.JwtBearer (4)
JwtBearerConfigureOptions.cs (4)
38if (configSection is null || !configSection.GetChildren().Any()) 45var issuers = configSection.GetSection(nameof(TokenValidationParameters.ValidIssuers)).GetChildren().Select(iss => iss.Value).ToList(); 48var audiences = configSection.GetSection(nameof(TokenValidationParameters.ValidAudiences)).GetChildren().Select(aud => aud.Value).ToList(); 84.GetChildren()
Microsoft.AspNetCore.Authentication.OpenIdConnect (3)
OpenIdConnectConfigureOptions.cs (3)
38if (configSection is null || !configSection.GetChildren().Any()) 87if (cookieConfigSection is null || !cookieConfigSection.GetChildren().Any()) 112var elementsFromConfig = listConfigSection.GetChildren().Select(element => element.Value).OfType<string>();
Microsoft.AspNetCore.BrowserTesting (4)
BrowserManagerConfiguration.cs (4)
97foreach (var browser in browsersOptions.GetChildren()) 119foreach (var option in contextOptions.GetChildren()) 236foreach (var arg in processArgsMap.GetChildren()) 244else if (arg.GetChildren().Count() > 1)
Microsoft.AspNetCore.Components.WebAssembly.Tests (1)
Hosting\WebAssemblyHostConfigurationTest.cs (1)
72var children = readableConfig.GetChildren();
Microsoft.AspNetCore.Server.Kestrel.Core (5)
Internal\ConfigSectionClone.cs (1)
18var children = configSection.GetChildren() ?? Enumerable.Empty<IConfigurationSection>();
Internal\ConfigurationReader.cs (4)
43var certificatesConfig = _configuration.GetSection(CertificatesKey).GetChildren(); 72var endpointsConfig = _configuration.GetSection(EndpointsKey).GetChildren(); 125foreach (var sniChild in sniConfig.GetChildren()) 190var childrenSections = sslProtocols.GetChildren().ToArray();
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (4)
KestrelServerTests.cs (4)
782mockConfig.Setup(c => c.GetChildren()).Returns(() => currentConfig.GetChildren()); 922mockConfig.Setup(c => c.GetChildren()).Returns(() => currentConfig.GetChildren());
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
KestrelConfigurationLoaderTests.cs (2)
51mockConfig.Setup(c => c.GetChildren()).Returns(currentConfig.GetChildren);
Microsoft.Extensions.Configuration (2)
ChainedConfigurationProvider.cs (1)
79foreach (IConfigurationSection child in section.GetChildren())
ConfigurationSectionDebugView.cs (1)
61foreach (IConfigurationSection child in config.GetChildren())
Microsoft.Extensions.Configuration.Abstractions (4)
ConfigurationExtensions.cs (2)
67foreach (IConfigurationSection child in config.GetChildren()) 85return section.Value != null || section.GetChildren().Any();
ConfigurationRootExtensions.cs (2)
70RecurseChildren(stringBuilder, child.GetChildren(), indent + " "); 76RecurseChildren(builder, root.GetChildren(), "");
Microsoft.Extensions.Configuration.Binder (6)
ConfigurationBinder.cs (6)
233foreach (IConfigurationSection cs in configuration.GetChildren()) 355if (config.GetChildren().Any()) 712foreach (IConfigurationSection child in config.GetChildren()) 761foreach (IConfigurationSection section in config.GetChildren()) 817foreach (IConfigurationSection section in config.GetChildren()) 886foreach (IConfigurationSection section in config.GetChildren())
Microsoft.Extensions.Configuration.KeyPerFile.Tests (6)
ConfigurationProviderTestBase.cs (6)
253var sections = config.GetChildren().ToList(); 269sections = section1.GetChildren().ToList(); 281sections = section2.GetChildren().ToList(); 293sections = section3a.GetChildren().ToList(); 309sections = section3.GetChildren().ToList(); 317sections = section4.GetChildren().ToList();
Microsoft.Extensions.Diagnostics (3)
Metrics\Configuration\MetricsConfigureOptions.cs (3)
28foreach (var configurationSection in _configuration.GetChildren()) 71foreach (var meterSection in configurationSection.GetChildren()) 74if (meterSection.GetChildren().Any())
Microsoft.Extensions.Http.Resilience (2)
Hedging\StandardHedgingHandlerBuilderExtensions.cs (1)
33if (!section.GetChildren().Any())
Resilience\HttpStandardResiliencePipelineBuilderExtensions.cs (1)
30if (!section.GetChildren().Any())
Microsoft.Extensions.Logging.Configuration (1)
LoggerFilterConfigureOptions.cs (1)
35foreach (IConfigurationSection configurationSection in _configuration.GetChildren())
Microsoft.Extensions.ObjectPool.DependencyInjection (1)
ObjectPoolServiceCollectionExtensions.cs (1)
83foreach (var child in Throw.IfNull(section).GetChildren())
Microsoft.Extensions.ServiceDiscovery (1)
Configuration\ConfigurationServiceEndpointProvider.cs (1)
119foreach (var child in namedSection.GetChildren())