4 implementations of GetSection
Microsoft.AspNetCore.Components.WebAssembly (1)
Hosting\WebAssemblyHostConfiguration.cs (1)
86public IConfigurationSection GetSection(string key) => new ConfigurationSection(this, key);
Microsoft.Extensions.Configuration (3)
ConfigurationManager.cs (1)
68public IConfigurationSection GetSection(string key) => new ConfigurationSection(this, key);
ConfigurationRoot.cs (1)
77public IConfigurationSection GetSection(string key)
ConfigurationSection.cs (1)
108public IConfigurationSection GetSection(string key) => _root.GetSection(Path + ConfigurationPath.KeyDelimiter + key);
476 references to GetSection
Aspire.Azure.AI.Inference (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.AI.OpenAI (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Data.Tables (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Messaging.EventHubs (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Messaging.ServiceBus (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Messaging.WebPubSub (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (3)
src\Components\Common\EntityFrameworkUtils.cs (3)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 28var connectionSpecificConfigurationSection = configurationSection.GetSection(connectionName); 31var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Azure.Search.Documents (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Security.KeyVault (7)
AspireKeyVaultExtensions.cs (2)
186var configSection = configuration.GetSection(DefaultConfigSectionName); 199configSection.GetSection("ClientOptions").Bind(clientOptions);
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Storage.Blobs (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Storage.Files.DataLake (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Storage.Queues (5)
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Confluent.Kafka (8)
AspireKafkaConsumerExtensions.cs (4)
250var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 251var namedConfigSection = configSection.GetSection(connectionName); 257configSection.GetSection(nameof(KafkaConsumerSettings.Config)).Bind(settings.Config); 258namedConfigSection.GetSection(nameof(KafkaConsumerSettings.Config)).Bind(settings.Config);
AspireKafkaProducerExtensions.cs (4)
251var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 252var namedConfigSection = configSection.GetSection(connectionName); 258configSection.GetSection(nameof(KafkaProducerSettings.Config)).Bind(settings.Config); 259namedConfigSection.GetSection(nameof(KafkaProducerSettings.Config)).Bind(settings.Config);
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
708var kestrelSection = context.Configuration.GetSection("Kestrel");
Aspire.Hosting (5)
Ats\BuilderExports.cs (2)
98return configuration.GetSection(key); 126return configuration.GetSection(key).Exists();
Dashboard\DashboardServiceHost.cs (1)
74var resourceServiceConfigSection = configuration.GetSection("AppHost:ResourceService");
Dcp\DcpOptions.cs (1)
194var dcpPublisherConfiguration = configuration.GetSection(DcpPublisher);
ProjectResourceBuilderExtensions.cs (1)
636var kestrelEndpoints = options.ExcludeKestrelEndpoints ? [] : config.GetSection("Kestrel:Endpoints").GetChildren();
Aspire.Hosting.Browsers (2)
BrowserConfiguration.cs (2)
45var browserLogsSection = configuration.GetSection(BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName); 46var resourceSection = browserLogsSection.GetSection(resourceName);
Aspire.Hosting.Browsers.Tests (2)
src\Aspire.Hosting.Browsers\BrowserConfiguration.cs (2)
45var browserLogsSection = configuration.GetSection(BrowserLogsBuilderExtensions.BrowserLogsConfigurationSectionName); 46var resourceSection = browserLogsSection.GetSection(resourceName);
Aspire.Hosting.RemoteHost (1)
AssemblyLoader.cs (1)
188foreach (var name in configuration.GetSection("AtsAssemblies").Get<string[]>() ?? [])
Aspire.Microsoft.Azure.Cosmos (2)
AspireMicrosoftAzureCosmosExtensions.cs (2)
232var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 233var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Microsoft.Data.SqlClient (2)
AspireSqlServerSqlClientExtensions.cs (2)
60var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 61var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
src\Components\Common\EntityFrameworkUtils.cs (3)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 28var connectionSpecificConfigurationSection = configurationSection.GetSection(connectionName); 31var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Microsoft.EntityFrameworkCore.SqlServer (3)
src\Components\Common\EntityFrameworkUtils.cs (3)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 28var connectionSpecificConfigurationSection = configurationSection.GetSection(connectionName); 31var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (6)
AspireAppConfigurationExtensions.cs (1)
56IConfigurationSection configSection = builder.Configuration.GetSection(DefaultConfigSectionName);
src\Components\Common\AzureComponent.cs (5)
52var configSection = builder.Configuration.GetSection(configurationSectionName); 58BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 60var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 96BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 97BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Milvus.Client (2)
AspireMilvusExtensions.cs (2)
67var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 68var namedConfigSection = configSection.GetSection(connectionName);
Aspire.MongoDB.Driver (2)
AspireMongoDBDriverExtensions.cs (2)
226var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 227var namedConfigSection = configSection.GetSection(connectionName);
Aspire.MongoDB.EntityFrameworkCore (3)
src\Components\Common\EntityFrameworkUtils.cs (3)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 28var connectionSpecificConfigurationSection = configurationSection.GetSection(connectionName); 31var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.MySqlConnector (2)
AspireMySqlConnectorExtensions.cs (2)
63var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 64var namedConfigSection = configSection.GetSection(connectionName);
Aspire.NATS.Net (2)
AspireNatsClientExtensions.cs (2)
124var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 125var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Npgsql (2)
AspirePostgreSqlNpgsqlExtensions.cs (2)
61var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 62var namedConfigSection = configSection.GetSection(connectionName);
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (3)
src\Components\Common\EntityFrameworkUtils.cs (3)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 28var connectionSpecificConfigurationSection = configurationSection.GetSection(connectionName); 31var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.OpenAI (5)
AspireOpenAIClientBuilder.cs (1)
82var configSection = configuration.GetSection(ConfigurationSectionName);
AspireOpenAIExtensions.cs (4)
69var configSection = builder.Configuration.GetSection(configurationSectionName); 70var namedConfigSection = configSection.GetSection(connectionName); 89configSection.GetSection("ClientOptions").Bind(options); 90namedConfigSection.GetSection("ClientOptions").Bind(options);
Aspire.Oracle.EntityFrameworkCore (3)
src\Components\Common\EntityFrameworkUtils.cs (3)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 28var connectionSpecificConfigurationSection = configurationSection.GetSection(connectionName); 31var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Pomelo.EntityFrameworkCore.MySql (3)
src\Components\Common\EntityFrameworkUtils.cs (3)
21var configurationSection = builder.Configuration.GetSection(defaultConfigSectionName); 28var connectionSpecificConfigurationSection = configurationSection.GetSection(connectionName); 31var typeSpecificConfigurationSection = configurationSection.GetSection(typeof(TContext).Name);
Aspire.Qdrant.Client (2)
AspireQdrantExtensions.cs (2)
65var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 66var namedConfigSection = configSection.GetSection(connectionName);
Aspire.RabbitMQ.Client (4)
src\Components\Aspire.RabbitMQ.Client\AspireRabbitMQExtensions.cs (4)
75var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 76var namedConfigSection = configSection.GetSection(connectionName); 96var configurationOptionsSection = configSection.GetSection("ConnectionFactory"); 97var namedConfigurationOptionsSection = namedConfigSection.GetSection("ConnectionFactory");
Aspire.Seq (2)
AspireSeqExtensions.cs (2)
43var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 44var namedConfigSection = builder.Configuration.GetSection(connectionName);
Aspire.StackExchange.Redis (3)
AspireRedisExtensions.cs (3)
103var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 104var namedConfigSection = configSection.GetSection(connectionName); 217var configurationOptionsSection = configuration.GetSection("ConfigurationOptions");
dotnet-user-jwts (2)
_generated\0\BindingExtensions.g.cs (1)
103Length = ParseInt(value3, configuration.GetSection("Length").Path);
Helpers\SigningKeysHandler.cs (1)
39.GetSection(GetSigningKeyPropertyName(scheme))
Microsoft.AspNetCore (2)
WebHost.cs (2)
208loggingBuilder.AddConfiguration(hostingContext.Configuration.GetSection("Logging")); 252options.Configure(builderContext.Configuration.GetSection("Kestrel"), reloadOnChange: true);
Microsoft.AspNetCore.Authentication (2)
AuthenticationConfigurationProviderExtensions.cs (1)
30return provider.AuthenticationConfiguration.GetSection($"{AuthenticationSchemesKey}:{authenticationScheme}");
DefaultAuthenticationConfigurationProvider.cs (1)
20public IConfiguration AuthenticationConfiguration => _configuration.GetSection(AuthenticationKey);
Microsoft.AspNetCore.Authentication.JwtBearer (3)
JwtBearerConfigureOptions.cs (3)
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(); 84var signingKey = configuration.GetSection("SigningKeys")
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
OpenIdConnectConfigureOptions.cs (4)
51SetCookieFromConfig(configSection.GetSection(nameof(options.CorrelationCookie)), options.CorrelationCookie); 63SetCookieFromConfig(configSection.GetSection(nameof(options.NonceCookie)), options.NonceCookie); 75ClearAndSetListOption(options.Scope, configSection.GetSection(nameof(options.Scope))); 107ClearAndSetListOption(cookieBuilder.Extensions, cookieConfigSection.GetSection(nameof(cookieBuilder.Extensions)));
Microsoft.AspNetCore.Diagnostics.Middleware (14)
Buffering\PerRequestLogBufferingConfigureOptions.cs (1)
27IConfigurationSection section = _configuration.GetSection(ConfigSectionName);
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (8)
168instance.AutoFlushDuration = ParseSystemTimeSpan(value4, configuration.GetSection("AutoFlushDuration").Path); 180instance.MaxLogRecordSizeInBytes = ParseInt(value5, configuration.GetSection("MaxLogRecordSizeInBytes").Path); 192instance.MaxPerRequestBufferSizeInBytes = ParseInt(value6, configuration.GetSection("MaxPerRequestBufferSizeInBytes").Path); 200var value7 = configuration.GetSection("Rules"); 222instance.LatencyDataExportTimeout = ParseSystemTimeSpan(value11, configuration.GetSection("LatencyDataExportTimeout").Path); 265logLevel = ParseEnum<global::Microsoft.Extensions.Logging.LogLevel>(value13, configuration.GetSection("LogLevel").Path); 281eventId = ParseInt(value14, configuration.GetSection("EventId").Path); 293var value16 = configuration.GetSection("Attributes");
Logging\Internal\LoggingRedactionOptionsConfigureOptions.cs (5)
43BindDataClassifications(_section.GetSection(nameof(LoggingRedactionOptions.RouteParameterDataClasses)), options.RouteParameterDataClasses); 44BindDataClassifications(_section.GetSection(nameof(LoggingRedactionOptions.RequestHeadersDataClasses)), options.RequestHeadersDataClasses); 45BindDataClassifications(_section.GetSection(nameof(LoggingRedactionOptions.ResponseHeadersDataClasses)), options.ResponseHeadersDataClasses); 46BindSet(_section.GetSection(nameof(LoggingRedactionOptions.ExcludePathStartsWith)), options.ExcludePathStartsWith); 103IConfigurationSection valueSection = section.GetSection(key);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
75.GetSection($"{nameof(RequestLatencyTelemetryOptions)}");
Logging\HttpLoggingServiceExtensionsTests.cs (5)
44services.AddHttpLoggingRedaction(configuration.GetSection("HttpLogging")); 73var configurationSection = configuration.GetSection("HttpLogging"); 107services.AddHttpLoggingRedaction(configuration.GetSection("HttpLogging")); 126services.AddHttpLoggingRedaction(configuration.GetSection("HttpLogging")); 142services.AddHttpLoggingRedaction(configuration.GetSection("Missing"));
Microsoft.AspNetCore.HeaderParsing (3)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (3)
140if (AsConfigWithChildren(configuration.GetSection("DefaultValues")) is IConfigurationSection section2) 154instance.DefaultMaxCachedValuesPerHeader = ParseInt(value5, configuration.GetSection("DefaultMaxCachedValuesPerHeader").Path); 161if (AsConfigWithChildren(configuration.GetSection("MaxCachedValuesPerHeader")) is IConfigurationSection section6)
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
74.GetSection($"{nameof(HeaderParsingOptions)}");
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Internal\ConfigurationReader.cs (9)
43var certificatesConfig = _configuration.GetSection(CertificatesKey).GetChildren(); 59var configSection = _configuration.GetSection(EndpointDefaultsKey); 63SslProtocols = ParseSslProcotols(configSection.GetSection(SslProtocolsKey)), 72var endpointsConfig = _configuration.GetSection(EndpointsKey).GetChildren(); 106ReadSni(endpointConfig.GetSection(SniKey), endpointConfig.Key), 110SslProtocols = ParseSslProcotols(endpointConfig.GetSection(SslProtocolsKey)), 112Certificate = new CertificateConfig(endpointConfig.GetSection(CertificateKey)) 154Certificate = new CertificateConfig(sniChild.GetSection(CertificateKey)), 156SslProtocols = ParseSslProcotols(sniChild.GetSection(SslProtocolsKey)),
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
28ConfigureOptions<SpaDevelopmentServerOptions>(services, configuration.GetSection("SpaProxyServer"));
Microsoft.Extensions.AmbientMetadata.Application (2)
ApplicationMetadataHostBuilderExtensions.cs (2)
33.ConfigureServices((hostBuilderContext, serviceCollection) => serviceCollection.AddApplicationMetadata(hostBuilderContext.Configuration.GetSection(sectionName))); 52_ = builder.Services.AddApplicationMetadata(builder.Configuration.GetSection(sectionName));
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
ApplicationMetadataExtensionsTests.cs (4)
38Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddApplicationMetadata(config.GetSection(string.Empty))); 100var expectedConfigSection = expectedConfig.GetSection(nameof(ApplicationMetadata)); 103var actualConfigSection = actualConfig.GetSection(nameof(ApplicationMetadata)); 129var configurationSection = config.GetSection(nameof(ApplicationMetadata));
Microsoft.Extensions.AmbientMetadata.Build.Tests (3)
BuildMetadataServiceCollectionExtensionsTests.cs (2)
22serviceCollection.Invoking(x => ((IServiceCollection)null!).AddBuildMetadata(config.GetSection(string.Empty))) 58.GetSection(nameof(BuildMetadata));
ConfigurationBindingQuirkBehaviorTests.cs (1)
72_ = services.AddBuildMetadata(context.Configuration.GetSection(sectionName));
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Classification\DataClassificationTypeConverterTests.cs (1)
46.Configure<TestOptions>(configuration.GetSection("Key"));
Microsoft.Extensions.Compliance.Redaction (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
95instance.KeyId = ParseInt(value1, () => configuration.GetSection("KeyId").Path);
Microsoft.Extensions.Compliance.Redaction.Tests (1)
HmacRedactorTest.cs (1)
27.GetSection(nameof(HmacRedactorOptions));
Microsoft.Extensions.Compliance.Testing.Tests (1)
Setup.cs (1)
21.GetSection(nameof(FakeRedactorOptions));
Microsoft.Extensions.Configuration (3)
ChainedConfigurationProvider.cs (1)
95IConfiguration section = parentPath == null ? _config : _config.GetSection(parentPath);
ConfigurationSection.cs (1)
108public IConfigurationSection GetSection(string key) => _root.GetSection(Path + ConfigurationPath.KeyDelimiter + key);
InternalConfigurationRootExtensions.cs (1)
30.Select(key => root.GetSection(path == null ? key : path + ConfigurationPath.KeyDelimiter + key));
Microsoft.Extensions.Configuration.Abstractions (2)
ConfigurationExtensions.cs (2)
38return configuration?.GetSection("ConnectionStrings")[name]; 102IConfigurationSection section = configuration.GetSection(key);
Microsoft.Extensions.Configuration.Binder (4)
ConfigurationBinder.cs (4)
113configuration.GetSection(key).Bind(instance); 209IConfigurationSection section = configuration.GetSection(key); 309config.GetSection(GetPropertyName(property)), 1159config.GetSection(parameterName),
Microsoft.Extensions.Diagnostics (8)
Metrics\Configuration\MetricListenerConfigurationFactory.cs (1)
26var section = configuration.Configuration.GetSection(listenerName);
Metrics\Configuration\MetricsConfigureOptions.cs (3)
49var enabledMetricsSection = configurationSection.GetSection(EnabledMetricsKey); 54var enabledGlobalMetricsSection = configurationSection.GetSection(EnabledGlobalMetricsKey); 59var enabledLocalMetricsSection = configurationSection.GetSection(EnabledLocalMetricsKey);
Tracing\Configuration\DefaultActivityListenerConfigurationFactory.cs (1)
26IConfigurationSection section = configuration.Configuration.GetSection(listenerName);
Tracing\Configuration\TracingConfigureOptions.cs (3)
46var enabledTracingSection = configurationSection.GetSection(EnabledTracingKey); 52var enabledGlobalTracingSection = configurationSection.GetSection(EnabledGlobalTracingKey); 58var enabledLocalTracingSection = configurationSection.GetSection(EnabledLocalTracingKey);
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
98instance.LogOnlyUnhealthy = ParseBool(value1, () => configuration.GetSection("LogOnlyUnhealthy").Path);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherExtensionsTests.cs (1)
60.GetSection(nameof(TelemetryHealthCheckPublisherOptions)));
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (6)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (6)
103instance.DegradedUtilizationPercentage = ParseDouble(value1, configuration.GetSection("DegradedUtilizationPercentage").Path); 122instance.UnhealthyUtilizationPercentage = ParseDouble(value2, configuration.GetSection("UnhealthyUtilizationPercentage").Path); 136var value3 = configuration.GetSection("CpuThresholds"); 149var value7 = configuration.GetSection("MemoryThresholds"); 166instance.SamplingWindow = ParseSystemTimeSpan(value11, configuration.GetSection("SamplingWindow").Path); 178instance.UseObservableResourceMonitoringInstruments = ParseBool(value12, configuration.GetSection("UseObservableResourceMonitoringInstruments").Path);
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization.Tests (7)
ResourceHealthCheckExtensionsTests.cs (7)
322.AddResourceUtilizationHealthCheck(SetupResourceHealthCheckConfiguration("0.5", "0.7", "0.5", "0.7", "00:00:05").GetSection(nameof(ResourceUtilizationHealthCheckOptions))); 337.AddResourceUtilizationHealthCheck(SetupResourceHealthCheckConfiguration("0.5", "0.7", "0.5", "0.7", "00:00:05").GetSection(nameof(ResourceUtilizationHealthCheckOptions))); 357SetupResourceHealthCheckConfiguration("0.5", "0.7", "0.5", "0.7", "00:00:05").GetSection(nameof(ResourceUtilizationHealthCheckOptions)), 373.AddResourceUtilizationHealthCheck(SetupResourceHealthCheckConfiguration("0.5", "0.7", "0.5", "0.7", "00:00:05").GetSection(nameof(ResourceUtilizationHealthCheckOptions)), 394SetupResourceHealthCheckConfiguration("0.5", "0.7", "0.5", "0.7", "00:00:05").GetSection(nameof(ResourceUtilizationHealthCheckOptions)), 411SetupResourceHealthCheckConfiguration("0.5", "0.7", "0.5", "0.7", "00:00:05").GetSection(nameof(ResourceUtilizationHealthCheckOptions)), 450.AddResourceUtilizationHealthCheck(SetupResourceHealthCheckConfiguration("0.5", "0.7", "0.5", "0.7", "00:00:05").GetSection(nameof(ResourceUtilizationHealthCheckOptions)));
Microsoft.Extensions.Diagnostics.Probes (6)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (6)
126instance.TcpPort = ParseInt(value1, () => configuration.GetSection("TcpPort").Path); 135instance.MaxPendingConnections = ParseInt(value2, () => configuration.GetSection("MaxPendingConnections").Path); 144instance.HealthAssessmentPeriod = ParseSystemTimeSpan(value3, () => configuration.GetSection("HealthAssessmentPeriod").Path); 156if (AsConfigWithChildren(configuration.GetSection("LivenessProbe")) is IConfigurationSection section4) 164if (AsConfigWithChildren(configuration.GetSection("StartupProbe")) is IConfigurationSection section7) 172if (AsConfigWithChildren(configuration.GetSection("ReadinessProbe")) is IConfigurationSection section10)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
KubernetesProbesExtensionsTests.cs (1)
105services.AddKubernetesProbes(configuration.GetSection("KubernetesProbes")).AddHealthChecks();
TcpEndpointProbesExtensionsTests.cs (2)
115.AddTcpEndpointProbe(config.GetSection("TcpHealthCheck")); 140.AddTcpEndpointProbe("Liveness", config.GetSection("TcpHealthCheck"));
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (10)
123instance.CollectionWindow = ParseSystemTimeSpan(value1, () => configuration.GetSection("CollectionWindow").Path); 132instance.SamplingInterval = ParseSystemTimeSpan(value2, () => configuration.GetSection("SamplingInterval").Path); 141instance.PublishingWindow = ParseSystemTimeSpan(value3, () => configuration.GetSection("PublishingWindow").Path); 150instance.CpuConsumptionRefreshInterval = ParseSystemTimeSpan(value4, () => configuration.GetSection("CpuConsumptionRefreshInterval").Path); 159instance.MemoryConsumptionRefreshInterval = ParseSystemTimeSpan(value5, () => configuration.GetSection("MemoryConsumptionRefreshInterval").Path); 168instance.UseLinuxCalculationV2 = ParseBool(value6, () => configuration.GetSection("UseLinuxCalculationV2").Path); 177instance.UseZeroToOneRangeForLinuxMetrics = ParseBool(value7, () => configuration.GetSection("UseZeroToOneRangeForLinuxMetrics").Path); 186instance.EnableSystemDiskIoMetrics = ParseBool(value8, () => configuration.GetSection("EnableSystemDiskIoMetrics").Path); 193if (AsConfigWithChildren(configuration.GetSection("SourceIpAddresses")) is IConfigurationSection section9) 203instance.UseZeroToOneRangeForMetrics = ParseBool(value12, () => configuration.GetSection("UseZeroToOneRangeForMetrics").Path);
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
ResourceMonitoringExtensionsTests.cs (1)
177.GetSection(nameof(ResourceMonitoringOptions));
Microsoft.Extensions.Diagnostics.Testing (91)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (91)
162if (AsConfigWithChildren(configuration.GetSection("Value")) is IConfigurationSection section1) 176if (AsConfigWithChildren(configuration.GetSection("Assembly")) is IConfigurationSection section3) 189if (AsConfigWithChildren(configuration.GetSection("ModuleHandle")) is IConfigurationSection section6) 198if (AsConfigWithChildren(configuration.GetSection("MethodHandle")) is IConfigurationSection section8) 202if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section10) 215if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section13) 228if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section16) 258if (AsConfigWithChildren(configuration.GetSection("AddMethod")) is IConfigurationSection section19) 271if (AsConfigWithChildren(configuration.GetSection("EventHandlerType")) is IConfigurationSection section22) 284if (AsConfigWithChildren(configuration.GetSection("RaiseMethod")) is IConfigurationSection section25) 297if (AsConfigWithChildren(configuration.GetSection("RemoveMethod")) is IConfigurationSection section28) 310if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section31) 323if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section34) 336if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section37) 366if (AsConfigWithChildren(configuration.GetSection("Value")) is IConfigurationSection section40) 375if (AsConfigWithChildren(configuration.GetSection("FieldHandle")) is IConfigurationSection section42) 379if (AsConfigWithChildren(configuration.GetSection("FieldType")) is IConfigurationSection section44) 392if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section47) 405if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section50) 418if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section53) 448if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section56) 461if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section59) 474if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section62) 528if (AsConfigWithChildren(configuration.GetSection("GetMethod")) is IConfigurationSection section65) 541if (AsConfigWithChildren(configuration.GetSection("PropertyType")) is IConfigurationSection section68) 554if (AsConfigWithChildren(configuration.GetSection("SetMethod")) is IConfigurationSection section71) 567if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section74) 580if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section77) 593if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section80) 648if (AsConfigWithChildren(configuration.GetSection("MethodHandle")) is IConfigurationSection section84) 652if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section86) 665if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section89) 678if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section92) 701if (AsConfigWithChildren(configuration.GetSection("Value")) is IConfigurationSection section95) 710if (AsConfigWithChildren(configuration.GetSection("GenericTypeParameters")) is IConfigurationSection section97) 717if (AsConfigWithChildren(configuration.GetSection("Assembly")) is IConfigurationSection section100) 730if (AsConfigWithChildren(configuration.GetSection("BaseType")) is IConfigurationSection section103) 743if (AsConfigWithChildren(configuration.GetSection("DeclaringMethod")) is IConfigurationSection section106) 756if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section109) 769if (AsConfigWithChildren(configuration.GetSection("DefaultBinder")) is IConfigurationSection section112) 774if (AsConfigWithChildren(configuration.GetSection("GenericTypeArguments")) is IConfigurationSection section114) 781if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section117) 794if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section120) 807if (AsConfigWithChildren(configuration.GetSection("StructLayoutAttribute")) is IConfigurationSection section123) 820if (AsConfigWithChildren(configuration.GetSection("TypeHandle")) is IConfigurationSection section126) 824if (AsConfigWithChildren(configuration.GetSection("TypeInitializer")) is IConfigurationSection section128) 837if (AsConfigWithChildren(configuration.GetSection("UnderlyingSystemType")) is IConfigurationSection section131) 867if (AsConfigWithChildren(configuration.GetSection("EntryPoint")) is IConfigurationSection section134) 880if (AsConfigWithChildren(configuration.GetSection("ManifestModule")) is IConfigurationSection section137) 898if (AsConfigWithChildren(configuration.GetSection("Assembly")) is IConfigurationSection section140) 911if (AsConfigWithChildren(configuration.GetSection("BaseType")) is IConfigurationSection section143) 924if (AsConfigWithChildren(configuration.GetSection("DeclaringMethod")) is IConfigurationSection section146) 937if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section149) 950if (AsConfigWithChildren(configuration.GetSection("DefaultBinder")) is IConfigurationSection section152) 955if (AsConfigWithChildren(configuration.GetSection("GenericTypeArguments")) is IConfigurationSection section154) 962if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section157) 975if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section160) 988if (AsConfigWithChildren(configuration.GetSection("StructLayoutAttribute")) is IConfigurationSection section163) 1001if (AsConfigWithChildren(configuration.GetSection("TypeHandle")) is IConfigurationSection section166) 1005if (AsConfigWithChildren(configuration.GetSection("TypeInitializer")) is IConfigurationSection section168) 1018if (AsConfigWithChildren(configuration.GetSection("UnderlyingSystemType")) is IConfigurationSection section171) 1036if (AsConfigWithChildren(configuration.GetSection("ArgumentType")) is IConfigurationSection section174) 1064if (AsConfigWithChildren(configuration.GetSection("MemberInfo")) is IConfigurationSection section178) 1077if (AsConfigWithChildren(configuration.GetSection("TypedValue")) is IConfigurationSection section181) 1096if (AsConfigWithChildren(configuration.GetSection("AttributeType")) is IConfigurationSection section184) 1109if (AsConfigWithChildren(configuration.GetSection("Constructor")) is IConfigurationSection section187) 1122if (AsConfigWithChildren(configuration.GetSection("ConstructorArguments")) is IConfigurationSection section190) 1129if (AsConfigWithChildren(configuration.GetSection("NamedArguments")) is IConfigurationSection section193) 1141if (AsConfigWithChildren(configuration.GetSection("Member")) is IConfigurationSection section196) 1154if (AsConfigWithChildren(configuration.GetSection("ParameterType")) is IConfigurationSection section199) 1172if (AsConfigWithChildren(configuration.GetSection("ReturnParameter")) is IConfigurationSection section202) 1185if (AsConfigWithChildren(configuration.GetSection("ReturnType")) is IConfigurationSection section205) 1198if (AsConfigWithChildren(configuration.GetSection("ReturnTypeCustomAttributes")) is IConfigurationSection section208) 1203if (AsConfigWithChildren(configuration.GetSection("MethodHandle")) is IConfigurationSection section210) 1207if (AsConfigWithChildren(configuration.GetSection("DeclaringType")) is IConfigurationSection section212) 1220if (AsConfigWithChildren(configuration.GetSection("Module")) is IConfigurationSection section215) 1233if (AsConfigWithChildren(configuration.GetSection("ReflectedType")) is IConfigurationSection section218) 1251if (AsConfigWithChildren(configuration.GetSection("Method")) is IConfigurationSection section221) 1269if (AsConfigWithChildren(configuration.GetSection("Local")) is IConfigurationSection section224) 1282if (AsConfigWithChildren(configuration.GetSection("Utc")) is IConfigurationSection section227) 1300if (AsConfigWithChildren(configuration.GetSection("System")) is IConfigurationSection section230) 1313if (AsConfigWithChildren(configuration.GetSection("LocalTimeZone")) is IConfigurationSection section233) 1331if (AsConfigWithChildren(configuration.GetSection("Method")) is IConfigurationSection section236) 1349if (AsConfigWithChildren(configuration.GetSection("Method")) is IConfigurationSection section239) 1367if (AsConfigWithChildren(configuration.GetSection("FilteredCategories")) is IConfigurationSection section242) 1375if (AsConfigWithChildren(configuration.GetSection("FilteredLevels")) is IConfigurationSection section245) 1383if (AsConfigWithChildren(configuration.GetSection("CustomFilter")) is IConfigurationSection section248) 1399instance.CollectRecordsForDisabledLogLevels = ParseBool(value251, () => configuration.GetSection("CollectRecordsForDisabledLogLevels").Path); 1406if (AsConfigWithChildren(configuration.GetSection("TimeProvider")) is IConfigurationSection section252) 1420if (AsConfigWithChildren(configuration.GetSection("OutputSink")) is IConfigurationSection section255) 1434if (AsConfigWithChildren(configuration.GetSection("OutputFormatter")) is IConfigurationSection section258)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
61var section = configRoot.GetSection("Logging");
Microsoft.Extensions.Hosting (2)
HostingHostBuilderExtensions.cs (2)
303logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging")); 330metrics.AddConfiguration(hostingContext.Configuration.GetSection("Metrics"));
Microsoft.Extensions.Http.Diagnostics (8)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (1)
98instance.EnableDetailedLatencyBreakdown = ParseBool(value1, () => configuration.GetSection("EnableDetailedLatencyBreakdown").Path);
Logging\Internal\LoggingOptionsConfigureOptions.cs (7)
45BindDataClassifications(_section.GetSection(nameof(LoggingOptions.RequestQueryParametersDataClasses)), options.RequestQueryParametersDataClasses); 57BindSet(_section.GetSection(nameof(LoggingOptions.RequestBodyContentTypes)), options.RequestBodyContentTypes); 58BindSet(_section.GetSection(nameof(LoggingOptions.ResponseBodyContentTypes)), options.ResponseBodyContentTypes); 59BindDataClassifications(_section.GetSection(nameof(LoggingOptions.RequestHeadersDataClasses)), options.RequestHeadersDataClasses); 60BindDataClassifications(_section.GetSection(nameof(LoggingOptions.ResponseHeadersDataClasses)), options.ResponseHeadersDataClasses); 63BindDataClassifications(_section.GetSection(nameof(LoggingOptions.RouteParameterDataClasses)), options.RouteParameterDataClasses); 120IConfigurationSection valueSection = section.GetSection(key);
Microsoft.Extensions.Http.Diagnostics.Tests (10)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
116.GetSection($"{nameof(HttpClientLatencyTelemetryOptions)}");
Logging\HttpClientLoggingExtensionsTest.cs (8)
269var configurationSection = configuration.GetSection(nameof(LoggingOptions)); 309var section = configuration.GetSection(nameof(LoggingOptions)); 330new LoggingOptionsConfigureOptions("test", configuration.GetSection("Missing")).Configure("test", missingSectionOptions); 366.AddExtendedHttpClientLogging(configuration.GetSection("HttpClientLogging")); 397.AddExtendedHttpClientLogging(configuration.GetSection(nameof(LoggingOptions))) 419.AddExtendedHttpClientLogging(configuration.GetSection(nameof(LoggingOptions))) 442.AddExtendedHttpClientLogging(configuration.GetSection(nameof(LoggingOptions))) 626.AddExtendedHttpClientLogging(configuration.GetSection(nameof(LoggingOptions)))
Logging\Internal\TestConfiguration.cs (1)
27.GetSection($"{nameof(LoggingOptions)}");
Microsoft.Extensions.Http.Resilience (38)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (38)
147instance.Timeout = ParseSystemTimeSpan(value4, () => configuration.GetSection("Timeout").Path); 166instance.Delay = ParseSystemTimeSpan(value6, () => configuration.GetSection("Delay").Path); 175instance.MaxHedgedAttempts = ParseInt(value7, () => configuration.GetSection("MaxHedgedAttempts").Path); 194instance.PermitLimit = ParseInt(value9, () => configuration.GetSection("PermitLimit").Path); 203instance.QueueProcessingOrder = ParseEnum<global::System.Threading.RateLimiting.QueueProcessingOrder>(value10, () => configuration.GetSection("QueueProcessingOrder").Path); 212instance.QueueLimit = ParseInt(value11, () => configuration.GetSection("QueueLimit").Path); 224if (AsConfigWithChildren(configuration.GetSection("DefaultRateLimiterOptions")) is IConfigurationSection section12) 249instance.FailureRatio = ParseDouble(value16, () => configuration.GetSection("FailureRatio").Path); 258instance.MinimumThroughput = ParseInt(value17, () => configuration.GetSection("MinimumThroughput").Path); 267instance.SamplingDuration = ParseSystemTimeSpan(value18, () => configuration.GetSection("SamplingDuration").Path); 276instance.BreakDuration = ParseSystemTimeSpan(value19, () => configuration.GetSection("BreakDuration").Path); 283if (AsConfigWithChildren(configuration.GetSection("ManualControl")) is IConfigurationSection section20) 288if (AsConfigWithChildren(configuration.GetSection("StateProvider")) is IConfigurationSection section22) 306if (AsConfigWithChildren(configuration.GetSection("RateLimiter")) is IConfigurationSection section26) 314if (AsConfigWithChildren(configuration.GetSection("CircuitBreaker")) is IConfigurationSection section29) 322if (AsConfigWithChildren(configuration.GetSection("Timeout")) is IConfigurationSection section32) 335if (AsConfigWithChildren(configuration.GetSection("TotalRequestTimeout")) is IConfigurationSection section35) 343if (AsConfigWithChildren(configuration.GetSection("Hedging")) is IConfigurationSection section38) 351if (AsConfigWithChildren(configuration.GetSection("Endpoint")) is IConfigurationSection section41) 366instance.ShouldRetryAfterHeader = ParseBool(value44, () => configuration.GetSection("ShouldRetryAfterHeader").Path); 375instance.MaxRetryAttempts = ParseInt(value45, () => configuration.GetSection("MaxRetryAttempts").Path); 384instance.BackoffType = ParseEnum<global::Polly.DelayBackoffType>(value46, () => configuration.GetSection("BackoffType").Path); 393instance.UseJitter = ParseBool(value47, () => configuration.GetSection("UseJitter").Path); 402instance.Delay = ParseSystemTimeSpan(value48, () => configuration.GetSection("Delay").Path); 411instance.MaxDelay = ParseSystemTimeSpan(value49, () => configuration.GetSection("MaxDelay").Path); 424if (AsConfigWithChildren(configuration.GetSection("RateLimiter")) is IConfigurationSection section51) 432if (AsConfigWithChildren(configuration.GetSection("TotalRequestTimeout")) is IConfigurationSection section54) 440if (AsConfigWithChildren(configuration.GetSection("Retry")) is IConfigurationSection section57) 448if (AsConfigWithChildren(configuration.GetSection("CircuitBreaker")) is IConfigurationSection section60) 456if (AsConfigWithChildren(configuration.GetSection("AttemptTimeout")) is IConfigurationSection section63) 471instance.Uri = ParseSystemUri(value66, () => configuration.GetSection("Uri").Path); 476instance.Weight = ParseInt(value67, () => configuration.GetSection("Weight").Path); 498if (AsConfigWithChildren(configuration.GetSection("Endpoints")) is IConfigurationSection section69) 521if (AsConfigWithChildren(configuration.GetSection("Groups")) is IConfigurationSection section73) 536instance.Weight = ParseInt(value76, () => configuration.GetSection("Weight").Path); 543if (AsConfigWithChildren(configuration.GetSection("Endpoints")) is IConfigurationSection section77) 568instance.SelectionMode = ParseEnum<global::Microsoft.Extensions.Http.Resilience.WeightedGroupSelectionMode>(value81, () => configuration.GetSection("SelectionMode").Path); 575if (AsConfigWithChildren(configuration.GetSection("Groups")) is IConfigurationSection section82)
Microsoft.Extensions.Http.Resilience.Tests (12)
Hedging\StandardHedgingTests.cs (5)
98}).GetSection("dummy"); 135}).GetSection("dummy"); 155}).GetSection("dummy"); 164var section = ConfigurationStubFactory.CreateEmpty().GetSection(string.Empty); 246out var reloadAction).GetSection("standard");
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (4)
71.GetSection("StandardResilienceOptions"); 79.GetSection("StandardResilienceOptions"); 82ConfigurationStubFactory.CreateEmpty().GetSection(string.Empty); 234out var reloadAction).GetSection("standard");
Routing\OrderedRoutingStrategyTest.cs (1)
37(b, c) => b.ConfigureOrderedGroups(c.GetSection("section")),
Routing\RoutingStrategyTest.cs (1)
168return new ConfigurationBuilder().AddInMemoryCollection(values.Select(pair => new KeyValuePair<string, string?>("section:" + pair.Key, pair.Value))).Build().GetSection("section");
Routing\WeightedRoutingStrategyTest.cs (1)
51(b, c) => b.ConfigureWeightedGroups(c.GetSection("section")),
Microsoft.Extensions.Logging.AzureAppServices (3)
BatchLoggerConfigureOptions.cs (1)
22options.IsEnabled = TextToBoolean(_configuration.GetSection(_isEnabledKey)?.Value);
BlobLoggerConfigureOptions.cs (1)
27options.ContainerUrl = _configuration.GetSection("APPSETTING_DIAGNOSTICS_AZUREBLOBCONTAINERSASURL")?.Value;
ConfigurationBasedLevelSwitcher.cs (1)
30return TextToLogLevel(_configuration.GetSection(_levelKey)?.Value);
Microsoft.Extensions.Logging.Configuration (4)
_generated\0\BindingExtensions.g.cs (1)
47IConfigurationSection section = configuration.GetSection(key);
LoggerFilterConfigureOptions.cs (1)
44IConfigurationSection logLevelSection = configurationSection.GetSection(LogLevelKey);
LoggerProviderConfigurationFactory.cs (2)
28IConfigurationSection sectionFromFullName = configuration.Configuration.GetSection(fullName); 33IConfigurationSection sectionFromAlias = configuration.Configuration.GetSection(alias);
Microsoft.Extensions.Logging.Console (26)
_generated\0\BindingExtensions.g.cs (24)
115instance.IncludeScopes = ParseBool(value0, configuration.GetSection("IncludeScopes").Path); 140instance.UseUtcTimestamp = ParseBool(value2, configuration.GetSection("UseUtcTimestamp").Path); 157instance.DisableColors = ParseBool(value3, configuration.GetSection("DisableColors").Path); 169instance.Format = ParseEnum<global::Microsoft.Extensions.Logging.Console.ConsoleLoggerFormat>(value4, configuration.GetSection("Format").Path); 194instance.IncludeScopes = ParseBool(value6, configuration.GetSection("IncludeScopes").Path); 206instance.LogToStandardErrorThreshold = ParseEnum<global::Microsoft.Extensions.Logging.LogLevel>(value7, configuration.GetSection("LogToStandardErrorThreshold").Path); 231instance.UseUtcTimestamp = ParseBool(value9, configuration.GetSection("UseUtcTimestamp").Path); 243instance.QueueFullMode = ParseEnum<global::Microsoft.Extensions.Logging.Console.ConsoleLoggerQueueFullMode>(value10, configuration.GetSection("QueueFullMode").Path); 255instance.MaxQueueLength = ParseInt(value11, configuration.GetSection("MaxQueueLength").Path); 268var value12 = configuration.GetSection("Default"); 285var value16 = configuration.GetSection("UnsafeRelaxedJsonEscaping"); 307var value20 = configuration.GetSection("Encoder"); 326instance.Indented = ParseBool(value24, configuration.GetSection("Indented").Path); 338instance.IndentCharacter = ParseChar(value25, configuration.GetSection("IndentCharacter").Path); 350instance.IndentSize = ParseInt(value26, configuration.GetSection("IndentSize").Path); 375instance.MaxDepth = ParseInt(value28, configuration.GetSection("MaxDepth").Path); 387instance.SkipValidation = ParseBool(value29, configuration.GetSection("SkipValidation").Path); 400var value30 = configuration.GetSection("JsonWriterOptions"); 418instance.IncludeScopes = ParseBool(value34, configuration.GetSection("IncludeScopes").Path); 443instance.UseUtcTimestamp = ParseBool(value36, configuration.GetSection("UseUtcTimestamp").Path); 460instance.ColorBehavior = ParseEnum<global::Microsoft.Extensions.Logging.Console.LoggerColorBehavior>(value37, configuration.GetSection("ColorBehavior").Path); 472instance.SingleLine = ParseBool(value38, configuration.GetSection("SingleLine").Path); 484instance.IncludeScopes = ParseBool(value39, configuration.GetSection("IncludeScopes").Path); 509instance.UseUtcTimestamp = ParseBool(value41, configuration.GetSection("UseUtcTimestamp").Path);
ConfigurationConsoleLoggerSettings.cs (1)
79var switches = _configuration.GetSection("LogLevel");
ConsoleLoggerExtensions.cs (1)
172return providerConfiguration.Configuration.GetSection("FormatterOptions");
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
DependencyInjectionExtensionsTests.cs (2)
34() => new ServiceCollection().ConfigurePools(builder.Build().GetSection("My:Pools"))); 51var services = new ServiceCollection().ConfigurePools(builder.Build().GetSection("My:Pools"));
Microsoft.Extensions.Options.ConfigurationExtensions (1)
OptionsBuilderConfigurationExtensions.cs (1)
77: config.GetSection(configSectionPath);
Microsoft.Extensions.ServiceDiscovery (4)
Configuration\ConfigurationServiceEndpointProvider.cs (4)
63var section = _configuration.GetSection(_options.Value.SectionName).GetSection(_serviceName); 83var candidate = section.GetSection(scheme); 96namedSection = section.GetSection(_endpointName);
Microsoft.Extensions.Telemetry (20)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BindingExtensions.g.cs (19)
190instance.EnvironmentName = ParseBool(value7, () => configuration.GetSection("EnvironmentName").Path); 199instance.ApplicationName = ParseBool(value8, () => configuration.GetSection("ApplicationName").Path); 208instance.DeploymentRing = ParseBool(value9, () => configuration.GetSection("DeploymentRing").Path); 217instance.BuildVersion = ParseBool(value10, () => configuration.GetSection("BuildVersion").Path); 231instance.ProcessId = ParseBool(value11, () => configuration.GetSection("ProcessId").Path); 240instance.ThreadId = ParseBool(value12, () => configuration.GetSection("ThreadId").Path); 254instance.OutputCheckpoints = ParseBool(value13, () => configuration.GetSection("OutputCheckpoints").Path); 263instance.OutputTags = ParseBool(value14, () => configuration.GetSection("OutputTags").Path); 272instance.OutputMeasures = ParseBool(value15, () => configuration.GetSection("OutputMeasures").Path); 286instance.ThrowOnUnregisteredNames = ParseBool(value16, () => configuration.GetSection("ThrowOnUnregisteredNames").Path); 300instance.CaptureStackTraces = ParseBool(value17, () => configuration.GetSection("CaptureStackTraces").Path); 309instance.UseFileInfoForStackTraces = ParseBool(value18, () => configuration.GetSection("UseFileInfoForStackTraces").Path); 318instance.IncludeExceptionMessage = ParseBool(value19, () => configuration.GetSection("IncludeExceptionMessage").Path); 327instance.MaxStackTraceLength = ParseInt(value20, () => configuration.GetSection("MaxStackTraceLength").Path); 341instance.ApplyDiscriminator = ParseBool(value21, () => configuration.GetSection("ApplyDiscriminator").Path); 368if (AsConfigWithChildren(configuration.GetSection("Rules")) is IConfigurationSection section23) 382probability = ParseDouble(value26, () => configuration.GetSection("Probability").Path); 398logLevel = ParseEnum<global::Microsoft.Extensions.Logging.LogLevel>(value28, () => configuration.GetSection("LogLevel").Path); 404eventId = ParseInt(value29, () => configuration.GetSection("EventId").Path);
Sampling\RandomProbabilisticSamplerConfigureOptions.cs (1)
26IConfigurationSection section = _configuration.GetSection(RandomProbabilisticSamplerKey);
Microsoft.Extensions.Telemetry.Tests (5)
Enrichment\ApplicationEnricherExtensionsTests.cs (1)
81.AddApplicationLogEnricher(context.Configuration.GetSection("Applicationenrichersection")))
Enrichment\ProcessEnricherExtensionsTests.cs (1)
79.AddProcessLogEnricher(context.Configuration.GetSection(TestSectionName)))
Enrichment\ServiceEnricherExtensionsTests.cs (1)
82.AddServiceLogEnricher(context.Configuration.GetSection("Serviceenrichersection")))
Latency\LatencyConsoleExtensionsTests.cs (1)
75.GetSection($"{nameof(LatencyConsoleOptions)}");
Latency\LatencyContextExtensionTests.cs (1)
128.GetSection($"{nameof(LatencyContextOptions)}");
Microsoft.Gen.BuildMetadata.Generated.Tests (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BuildMetadataExtensions.g.cs (2)
72global::Microsoft.Extensions.DependencyInjection.BuildMetadataServiceCollectionExtensions.AddBuildMetadata(serviceCollection, hostBuilderContext.Configuration.GetSection(sectionName))); 101global::Microsoft.Extensions.DependencyInjection.BuildMetadataServiceCollectionExtensions.AddBuildMetadata(builder.Services, builder.Configuration.GetSection(sectionName));
Microsoft.Gen.BuildMetadata.Unit.Tests (2)
Generated\Basic.CompilerLog.Util\Basic.CompilerLog.Util.Impl.BasicGeneratedFilesAnalyzerReference\BuildMetadataExtensions.g.cs (2)
72global::Microsoft.Extensions.DependencyInjection.BuildMetadataServiceCollectionExtensions.AddBuildMetadata(serviceCollection, hostBuilderContext.Configuration.GetSection(sectionName))); 101global::Microsoft.Extensions.DependencyInjection.BuildMetadataServiceCollectionExtensions.AddBuildMetadata(builder.Services, builder.Configuration.GetSection(sectionName));