1 implementation of IConfigurationSection
Microsoft.Extensions.Configuration (1)
ConfigurationSection.cs (1)
16public class ConfigurationSection : IConfigurationSection
252 references to IConfigurationSection
Aspire.Azure.AI.OpenAI (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Data.Tables (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Messaging.EventHubs (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Messaging.ServiceBus (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Messaging.WebPubSub (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Search.Documents (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Security.KeyVault (3)
AspireKeyVaultExtensions.cs (1)
94var configSection = configuration.GetSection(DefaultConfigSectionName);
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Storage.Blobs (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Azure.Storage.Queues (2)
src\Components\Common\AzureComponent.cs (2)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}");
Aspire.Confluent.Kafka (4)
AspireKafkaConsumerExtensions.cs (2)
213var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 214var namedConfigSection = configSection.GetSection(connectionName);
AspireKafkaProducerExtensions.cs (2)
213var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 214var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Dashboard (3)
DashboardWebApplication.cs (3)
158var dashboardConfigSection = builder.Configuration.GetSection("Dashboard"); 482private static bool TryGetDashboardOptions(WebApplicationBuilder builder, IConfigurationSection dashboardConfigSection, [NotNullWhen(true)] out DashboardOptions? dashboardOptions, [NotNullWhen(false)] out IEnumerable<string>? failureMessages) 571var kestrelSection = context.Configuration.GetSection("Kestrel");
Aspire.Elastic.Clients.Elasticsearch (2)
AspireElasticClientsElasticsearchExtensions.cs (2)
75var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 76var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Hosting (1)
Dashboard\DashboardServiceHost.cs (1)
78var resourceServiceConfigSection = configuration.GetSection("AppHost:ResourceService");
Aspire.Hosting.Azure (2)
Provisioning\Provisioners\BicepProvisioner.cs (2)
31var section = configuration.GetSection($"Azure:Deployments:{resource.Name}"); 72foreach (var item in section.GetSection("SecretOutputs").GetChildren())
Aspire.Microsoft.Azure.Cosmos (2)
AspireMicrosoftAzureCosmosExtensions.cs (2)
68var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 69var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Microsoft.Data.SqlClient (2)
AspireSqlServerSqlClientExtensions.cs (2)
56var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 57var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (2)
src\Components\Common\EntityFrameworkUtils.cs (2)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 23var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (2)
src\Components\Common\EntityFrameworkUtils.cs (2)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 23var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Milvus.Client (2)
AspireMilvusExtensions.cs (2)
69var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 70var namedConfigSection = configSection.GetSection(connectionName);
Aspire.MongoDB.Driver (2)
AspireMongoDBDriverExtensions.cs (2)
208var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 209var namedConfigSection = configSection.GetSection(connectionName);
Aspire.MySqlConnector (2)
AspireMySqlConnectorExtensions.cs (2)
59var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 60var namedConfigSection = configSection.GetSection(connectionName);
Aspire.NATS.Net (2)
AspireNatsClientExtensions.cs (2)
66var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 67var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Npgsql (2)
AspirePostgreSqlNpgsqlExtensions.cs (2)
60var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 61var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (2)
src\Components\Common\EntityFrameworkUtils.cs (2)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 23var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.OpenAI (2)
AspireOpenAIExtensions.cs (2)
71var configSection = builder.Configuration.GetSection(configurationSectionName); 72var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Oracle.EntityFrameworkCore (2)
src\Components\Common\EntityFrameworkUtils.cs (2)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 23var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Pomelo.EntityFrameworkCore.MySql (2)
src\Components\Common\EntityFrameworkUtils.cs (2)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 23var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Qdrant.Client (2)
AspireQdrantExtensions.cs (2)
64var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 65var namedConfigSection = configSection.GetSection(connectionName);
Aspire.RabbitMQ.Client (4)
AspireRabbitMQExtensions.cs (4)
74var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 75var namedConfigSection = configSection.GetSection(connectionName); 95var configurationOptionsSection = configSection.GetSection("ConnectionFactory"); 96var namedConfigurationOptionsSection = namedConfigSection.GetSection("ConnectionFactory");
Aspire.Seq (2)
AspireSeqExtensions.cs (2)
42var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 43var namedConfigSection = builder.Configuration.GetSection(connectionName);
Aspire.StackExchange.Redis (3)
AspireRedisExtensions.cs (3)
70var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 71var namedConfigSection = configSection.GetSection(connectionName); 172var configurationOptionsSection = configuration.GetSection("ConfigurationOptions");
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.Analyzers.Local.Tests (1)
ApiLifecycle\ApiLifecycleAnalyzerTest.cs (1)
90Assembly.GetAssembly(typeof(IConfigurationSection))!,
Microsoft.AspNetCore.Authentication.JwtBearer (1)
JwtBearerConfigureOptions.cs (1)
83var signingKey = configuration.GetSection("SigningKeys")
Microsoft.AspNetCore.Authentication.OpenIdConnect (1)
OpenIdConnectConfigureOptions.cs (1)
110private static void ClearAndSetListOption(ICollection<string> listOption, IConfigurationSection listConfigSection)
Microsoft.AspNetCore.BrowserTesting (11)
BrowserManagerConfiguration.cs (11)
79var defaultBrowserOptions = configuration.GetSection(nameof(GlobalBrowserOptions)); 85var defaultContextOptions = configuration.GetSection(nameof(GlobalContextOptions)); 91var browsersOptions = configuration.GetSection(nameof(BrowserOptions)); 97foreach (var browser in browsersOptions.GetChildren()) 108var defaultContextOptionsSection = browser.GetSection("DefaultContextOptions"); 118var contextOptions = configuration.GetSection("ContextOptions"); 119foreach (var option in contextOptions.GetChildren()) 161var section = configuration.GetSection(key); 216private static T BindMultiValueMap<T>(IConfigurationSection processArgsMap, Func<Dictionary<string, HashSet<string>>, T> mapper) 236foreach (var arg in processArgsMap.GetChildren()) 296private static string[] BindArgumentMap(IConfigurationSection configuration) => configuration.Exists() switch
Microsoft.AspNetCore.Components.WebAssembly (5)
Hosting\WebAssemblyHostConfiguration.cs (5)
81/// <returns>The <see cref="IConfigurationSection"/>.</returns> 84/// an empty <see cref="IConfigurationSection"/> will be returned. 86public IConfigurationSection GetSection(string key) => new ConfigurationSection(this, key); 92IEnumerable<IConfigurationSection> IConfiguration.GetChildren() 95var result = new List<IConfigurationSection>();
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Latency\RequestLatencyTelemetryServiceCollectionExtensions.cs (1)
66public static IServiceCollection AddRequestLatencyTelemetry(this IServiceCollection services, IConfigurationSection section)
Logging\HttpLoggingServiceCollectionExtensions.cs (1)
59public static IServiceCollection AddHttpLoggingRedaction(this IServiceCollection services, IConfigurationSection section)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Latency\RequestLatencyTelemetryExtensionsTests.cs (2)
56var config = GetConfigSection(expectedOptions); 67private static IConfigurationSection GetConfigSection(RequestLatencyTelemetryOptions options)
Logging\HttpLoggingServiceExtensionsTests.cs (1)
28() => HttpLoggingServiceCollectionExtensions.AddHttpLoggingRedaction(services, (IConfigurationSection)null!));
Microsoft.AspNetCore.HeaderParsing (1)
HeaderParsingServiceCollectionExtensions.cs (1)
65public static IServiceCollection AddHeaderParsing(this IServiceCollection services, IConfigurationSection section)
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
61static IConfigurationSection GetConfigurationSection()
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostBuilderTests.cs (1)
1326var section = config.GetSection("nested");
Microsoft.AspNetCore.Server.Kestrel.Core (15)
EndpointConfiguration.cs (3)
15internal EndpointConfiguration(bool isHttps, ListenOptions listenOptions, HttpsConnectionAdapterOptions httpsOptions, IConfigurationSection configSection) 39/// Gets the <see cref="IConfigurationSection"/> for the endpoint. 41public IConfigurationSection ConfigSection { get; }
Internal\ConfigSectionClone.cs (2)
13public ConfigSectionClone(IConfigurationSection configSection) 18var children = configSection.GetChildren() ?? Enumerable.Empty<IConfigurationSection>();
Internal\ConfigurationReader.cs (10)
44foreach (var certificateConfig in certificatesConfig) 59var configSection = _configuration.GetSection(EndpointDefaultsKey); 73foreach (var endpointConfig in endpointsConfig) 121private static Dictionary<string, SniConfig> ReadSni(IConfigurationSection sniConfig, string endpointName) 125foreach (var sniChild in sniConfig.GetChildren()) 186private static SslProtocols? ParseSslProcotols(IConfigurationSection sslProtocols) 276IConfigurationSection configSection) 294public IConfigurationSection ConfigSection { get; } 366public CertificateConfig(IConfigurationSection configSection) 389public IConfigurationSection? ConfigSection { get; }
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
34static void ConfigureOptions<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(IServiceCollection services, IConfigurationSection section)
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataServiceCollectionExtensions.cs (1)
23public static IServiceCollection AddApplicationMetadata(this IServiceCollection services, IConfigurationSection section)
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
ApplicationMetadataExtensionsTests.cs (4)
41Assert.Throws<ArgumentNullException>(() => serviceCollection.AddApplicationMetadata((IConfigurationSection)null!)); 79var expectedConfigSection = expectedConfig.GetSection(nameof(ApplicationMetadata)); 82var actualConfigSection = actualConfig.GetSection(nameof(ApplicationMetadata)); 108var configurationSection = config.GetSection(nameof(ApplicationMetadata));
Microsoft.Extensions.Compliance.Redaction (1)
RedactionExtensions.cs (1)
47public static IRedactionBuilder SetHmacRedactor(this IRedactionBuilder builder, IConfigurationSection section, params DataClassificationSet[] classifications)
Microsoft.Extensions.Compliance.Redaction.Tests (3)
HmacRedactorExtensionsTests.cs (1)
32var section = HmacRedactorTest.GetRedactorConfiguration(new ConfigurationBuilder(), HmacRedactorTest.HmacExamples[0].KeyId, HmacRedactorTest.HmacExamples[0].Key);
HmacRedactorTest.cs (2)
16public static IConfigurationSection GetRedactorConfiguration(IConfigurationBuilder builder, int keyId, string key) 126var section = GetRedactorConfiguration(new ConfigurationBuilder(), example.KeyId, example.Key);
Microsoft.Extensions.Compliance.Testing (1)
FakeRedactionBuilderExtensions.cs (1)
67public static IRedactionBuilder SetFakeRedactor(this IRedactionBuilder builder, IConfigurationSection section, params DataClassificationSet[] classifications)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Setup.cs (1)
11public static IConfigurationSection GetFakesConfiguration()
Microsoft.Extensions.Configuration (18)
ChainedConfigurationProvider.cs (1)
79foreach (IConfigurationSection child in section.GetChildren())
ConfigurationManager.cs (2)
68public IConfigurationSection GetSection(string key) => new ConfigurationSection(this, key); 71public IEnumerable<IConfigurationSection> GetChildren() => this.GetChildrenImplementation(null);
ConfigurationRoot.cs (4)
60public IEnumerable<IConfigurationSection> GetChildren() => this.GetChildrenImplementation(null); 72/// <returns>The <see cref="IConfigurationSection"/>.</returns> 75/// an empty <see cref="IConfigurationSection"/> is returned. 77public IConfigurationSection GetSection(string key)
ConfigurationSection.cs (4)
84/// <returns>The <see cref="IConfigurationSection"/>.</returns> 87/// an empty <see cref="IConfigurationSection"/> will be returned. 89public IConfigurationSection GetSection(string key) => _root.GetSection(Path + ConfigurationPath.KeyDelimiter + key); 95public IEnumerable<IConfigurationSection> GetChildren() => _root.GetChildrenImplementation(Path);
ConfigurationSectionDebugView.cs (5)
14private readonly IConfigurationSection _section; 16public ConfigurationSectionDebugView(IConfigurationSection section, string path, IConfigurationProvider? provider) 49int prefixLength = (current is IConfigurationSection rootSection) ? rootSection.Path.Length + 1 : 0; 54if (config is IConfigurationSection section && config != current) 61foreach (IConfigurationSection child in config.GetChildren())
InternalConfigurationRootExtensions.cs (2)
21internal static IEnumerable<IConfigurationSection> GetChildrenImplementation(this IConfigurationRoot root, string? path) 26IEnumerable<IConfigurationSection> children = providers
Microsoft.Extensions.Configuration.Abstractions (14)
ConfigurationExtensions.cs (8)
58int prefixLength = (makePathsRelative && configuration is IConfigurationSection rootSection) ? rootSection.Path.Length + 1 : 0; 63if (config is IConfigurationSection section && (!makePathsRelative || config != configuration)) 67foreach (IConfigurationSection child in config.GetChildren()) 75/// Determines whether the section has a <see cref="IConfigurationSection.Value"/> or has children. 79public static bool Exists([NotNullWhen(true)] this IConfigurationSection? section) 93/// <returns>The <see cref="IConfigurationSection"/>.</returns> 98public static IConfigurationSection GetRequiredSection(this IConfiguration configuration, string key) 102IConfigurationSection section = configuration.GetSection(key);
ConfigurationRootExtensions.cs (2)
40IEnumerable<IConfigurationSection> children, 43foreach (IConfigurationSection child in children)
IConfiguration.cs (4)
25/// <returns>The <see cref="IConfigurationSection"/>.</returns> 28/// an empty <see cref="IConfigurationSection"/> will be returned. 30IConfigurationSection GetSection(string key); 36IEnumerable<IConfigurationSection> GetChildren();
Microsoft.Extensions.Configuration.Binder (9)
ConfigurationBinder.cs (9)
212IConfigurationSection section = configuration.GetSection(key); 233foreach (IConfigurationSection cs in configuration.GetChildren()) 330if (type == typeof(IConfigurationSection)) 341var section = config as IConfigurationSection; 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 (5)
ConfigurationProviderTestBase.cs (5)
207var section1 = config.GetSection("Section1"); 216var section2 = config.GetSection("Section1:Section2"); 232var section3a = section2.GetSection("Key3a"); 239var section3 = config.GetSection("Section3"); 243var section4 = config.GetSection("Section3:Section4");
Microsoft.Extensions.Diagnostics (8)
Metrics\Configuration\MetricListenerConfigurationFactory.cs (1)
26var section = configuration.Configuration.GetSection(listenerName);
Metrics\Configuration\MetricsConfigureOptions.cs (7)
28foreach (var configurationSection in _configuration.GetChildren()) 49var enabledMetricsSection = configurationSection.GetSection(EnabledMetricsKey); 54var enabledGlobalMetricsSection = configurationSection.GetSection(EnabledGlobalMetricsKey); 59var enabledLocalMetricsSection = configurationSection.GetSection(EnabledLocalMetricsKey); 69internal static void LoadMeterRules(MetricsOptions options, IConfigurationSection configurationSection, MeterScope scopes, string? listenerName) 71foreach (var meterSection in configurationSection.GetChildren()) 95internal static void LoadInstrumentRules(MetricsOptions options, IConfigurationSection meterSection, MeterScope scopes, string? listenerName)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
CommonHealthChecksExtensions.TelemetryPublisher.cs (1)
33public static IServiceCollection AddTelemetryHealthCheckPublisher(this IServiceCollection services, IConfigurationSection section)
Microsoft.Extensions.Diagnostics.Probes (3)
KubernetesProbesExtensions.cs (1)
31public static IServiceCollection AddKubernetesProbes(this IServiceCollection services, IConfigurationSection section)
TcpEndpointProbesExtensions.cs (2)
107IConfigurationSection configurationSection) 128IConfigurationSection configurationSection)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (2)
ResourceMonitoringBuilderExtensions.cs (2)
38/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ResourceMonitoringOptions"/>.</param> 43IConfigurationSection section)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (6)
Linux\AcceptanceTest.cs (3)
54var section = new ConfigurationBuilder() 106var section = new ConfigurationBuilder() 155var section = new ConfigurationBuilder()
ResourceMonitoringExtensionsTests.cs (3)
26Assert.Throws<ArgumentNullException>(() => ((IResourceMonitorBuilder)null!).ConfigureMonitor((IConfigurationSection)null!)); 27Assert.Throws<ArgumentNullException>(() => services.AddResourceMonitoring((b) => b.ConfigureMonitor((IConfigurationSection)null!))); 161var configurationSection = config
Microsoft.Extensions.Diagnostics.Testing (2)
Logging\FakeLoggerBuilderExtensions.cs (1)
25public static ILoggingBuilder AddFakeLogging(this ILoggingBuilder builder, IConfigurationSection section)
Logging\FakeLoggerServiceCollectionExtensions.cs (1)
22public static IServiceCollection AddFakeLogging(this IServiceCollection services, IConfigurationSection section)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
61var section = configRoot.GetSection("Logging");
Microsoft.Extensions.Http.Diagnostics (6)
Latency\HttpClientLatencyTelemetryExtensions.cs (2)
57/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="HttpClientLatencyTelemetryOptions"/>.</param> 59public static IServiceCollection AddHttpClientLatencyTelemetry(this IServiceCollection services, IConfigurationSection section)
Logging\HttpClientLoggingHttpClientBuilderExtensions.cs (2)
44/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="LoggingOptions"/>.</param> 52public static IHttpClientBuilder AddExtendedHttpClientLogging(this IHttpClientBuilder builder, IConfigurationSection section)
Logging\HttpClientLoggingServiceCollectionExtensions.cs (2)
55/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="LoggingOptions"/>.</param> 61public static IServiceCollection AddExtendedHttpClientLogging(this IServiceCollection services, IConfigurationSection section)
Microsoft.Extensions.Http.Diagnostics.Tests (8)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (3)
29act = () => Mock.Of<IServiceCollection>().AddHttpClientLatencyTelemetry((IConfigurationSection)null!); 97var config = GetConfigSection(expectedOptions); 108private static IConfigurationSection GetConfigSection(HttpClientLatencyTelemetryOptions options)
Logging\HttpClientLoggingExtensionsTest.cs (4)
43act = () => ((IHttpClientBuilder)null!).AddExtendedHttpClientLogging(Mock.Of<IConfigurationSection>()); 49act = () => Mock.Of<IHttpClientBuilder>().AddExtendedHttpClientLogging((IConfigurationSection)null!); 62act = () => ((IServiceCollection)null!).AddExtendedHttpClientLogging(Mock.Of<IConfigurationSection>()); 68act = () => Mock.Of<IServiceCollection>().AddExtendedHttpClientLogging((IConfigurationSection)null!);
Logging\Internal\TestConfiguration.cs (1)
17public static IConfigurationSection GetHttpClientLoggingConfigurationSection(TimeSpan timeout) =>
Microsoft.Extensions.Http.Resilience (5)
Hedging\StandardHedgingHandlerBuilderExtensions.cs (1)
28public static IStandardHedgingHandlerBuilder Configure(this IStandardHedgingHandlerBuilder builder, IConfigurationSection section)
Resilience\HttpStandardResiliencePipelineBuilderExtensions.cs (1)
25public static IHttpStandardResiliencePipelineBuilder Configure(this IHttpStandardResiliencePipelineBuilder builder, IConfigurationSection section)
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
31public static IHttpStandardResiliencePipelineBuilder AddStandardResilienceHandler(this IHttpClientBuilder builder, IConfigurationSection section)
Routing\RoutingStrategyBuilderExtensions.cs (2)
32public static IRoutingStrategyBuilder ConfigureOrderedGroups(this IRoutingStrategyBuilder builder, IConfigurationSection section) 77public static IRoutingStrategyBuilder ConfigureWeightedGroups(this IRoutingStrategyBuilder builder, IConfigurationSection section)
Microsoft.Extensions.Http.Resilience.Tests (11)
Hedging\StandardHedgingTests.cs (5)
95var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 131var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 152var section = ConfigurationStubFactory.Create(new Dictionary<string, string?> 164var section = ConfigurationStubFactory.CreateEmpty().GetSection(string.Empty); 241var config = ConfigurationStubFactory.Create(
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (5)
63private static readonly IConfigurationSection _validConfigurationSection = 73private static readonly IConfigurationSection _invalidConfigurationSection = 81private static readonly IConfigurationSection _emptyConfigurationSection = 229var config = ConfigurationStubFactory.Create( 274IConfigurationSection configuration,
Routing\RoutingStrategyTest.cs (1)
166protected static IConfigurationSection GetSection(IDictionary<string, string> values)
Microsoft.Extensions.Logging.Configuration (5)
LoggerFilterConfigureOptions.cs (3)
35foreach (IConfigurationSection configurationSection in _configuration.GetChildren()) 44IConfigurationSection logLevelSection = configurationSection.GetSection(LogLevelKey); 55private static void LoadRules(LoggerFilterOptions options, IConfigurationSection configurationSection, string? logger)
LoggerProviderConfigurationFactory.cs (2)
28IConfigurationSection sectionFromFullName = configuration.Configuration.GetSection(fullName); 33IConfigurationSection sectionFromAlias = configuration.Configuration.GetSection(alias);
Microsoft.Extensions.Logging.Console (1)
ConfigurationConsoleLoggerSettings.cs (1)
79var switches = _configuration.GetSection("LogLevel");
Microsoft.Extensions.ObjectPool.DependencyInjection (2)
ObjectPoolServiceCollectionExtensions.cs (2)
81public static IServiceCollection ConfigurePools(this IServiceCollection services, IConfigurationSection section) 83foreach (var child in Throw.IfNull(section).GetChildren())
Microsoft.Extensions.ServiceDiscovery (5)
Configuration\ConfigurationServiceEndpointProvider.cs (5)
64var section = _configuration.GetSection(_options.Value.SectionName).GetSection(_serviceName); 75IConfigurationSection? namedSection = null; 84var candidate = section.GetSection(scheme); 119foreach (var child in namedSection.GetChildren()) 191private void AddEndpoint(List<ServiceEndpoint> endpoints, IConfigurationSection section, string endpointName)
Microsoft.Extensions.Telemetry (8)
Enrichment\ApplicationEnricherServiceCollectionExtensions.cs (2)
51/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ApplicationLogEnricherOptions"/> in the service enricher.</param> 54public static IServiceCollection AddServiceLogEnricher(this IServiceCollection services, IConfigurationSection section)
Enrichment\ProcessEnricherServiceCollectionExtensions.cs (2)
52/// <param name="section">The <see cref="IConfigurationSection"/> to use for configuring <see cref="ProcessLogEnricherOptions"/> in the process enricher.</param> 55public static IServiceCollection AddProcessLogEnricher(this IServiceCollection services, IConfigurationSection section)
Latency\LatencyConsoleExtensions.cs (1)
58public static IServiceCollection AddConsoleLatencyDataExporter(this IServiceCollection services, IConfigurationSection section)
Latency\LatencyContextExtensions.cs (1)
56public static IServiceCollection AddLatencyContext(this IServiceCollection services, IConfigurationSection section)
Logging\LoggingEnrichmentExtensions.cs (1)
50public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, IConfigurationSection section)
Logging\LoggingRedactionExtensions.cs (1)
49public static ILoggingBuilder EnableRedaction(this ILoggingBuilder builder, IConfigurationSection section)
Microsoft.Extensions.Telemetry.Tests (8)
Enrichment\ApplicationEnricherExtensionsTests.cs (2)
27((IServiceCollection)null!).AddServiceLogEnricher(Mock.Of<IConfigurationSection>())); 30new ServiceCollection().AddServiceLogEnricher((IConfigurationSection)null!));
Enrichment\ProcessEnricherExtensionsTests.cs (2)
27((IServiceCollection)null!).AddProcessLogEnricher(Mock.Of<IConfigurationSection>())); 30new ServiceCollection().AddProcessLogEnricher((IConfigurationSection)null!));
Latency\LatencyConsoleExtensionsTests.cs (2)
57var config = GetConfigSection(expectedOptions); 67private static IConfigurationSection GetConfigSection(LatencyConsoleOptions options)
Latency\LatencyContextExtensionTests.cs (2)
93var config = GetConfigSection(expectedOptions); 120private static IConfigurationSection GetConfigSection(LatencyContextOptions options)