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)
89public IConfigurationSection GetSection(string key) => _root.GetSection(Path + ConfigurationPath.KeyDelimiter + key);
230 references to GetSection
Aspire.Azure.AI.OpenAI (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Data.Tables (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Messaging.EventHubs (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Messaging.ServiceBus (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Messaging.WebPubSub (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Search.Documents (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Security.KeyVault (7)
AspireKeyVaultExtensions.cs (2)
94var configSection = configuration.GetSection(DefaultConfigSectionName); 107configSection.GetSection("ClientOptions").Bind(clientOptions);
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Storage.Blobs (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Azure.Storage.Queues (5)
src\Components\Common\AzureComponent.cs (5)
54var configSection = builder.Configuration.GetSection(configurationSectionName); 60BindSettingsToConfiguration(settings, configSection.GetSection(connectionName)); 62var serviceKeySection = configSection.GetSection($"{connectionName}:{serviceKey}"); 98BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection("ClientOptions")); 99BindClientOptionsToConfiguration(clientBuilder, configSection.GetSection($"{connectionName}:ClientOptions"));
Aspire.Confluent.Kafka (8)
AspireKafkaConsumerExtensions.cs (4)
213var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 214var namedConfigSection = configSection.GetSection(connectionName); 220configSection.GetSection(nameof(KafkaConsumerSettings.Config)).Bind(settings.Config); 221namedConfigSection.GetSection(nameof(KafkaConsumerSettings.Config)).Bind(settings.Config);
AspireKafkaProducerExtensions.cs (4)
213var configSection = builder.Configuration.GetSection(DefaultConfigSectionName); 214var namedConfigSection = configSection.GetSection(connectionName); 220configSection.GetSection(nameof(KafkaProducerSettings.Config)).Bind(settings.Config); 221namedConfigSection.GetSection(nameof(KafkaProducerSettings.Config)).Bind(settings.Config);
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
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 (2)
Dashboard\DashboardServiceHost.cs (1)
78var resourceServiceConfigSection = configuration.GetSection("AppHost:ResourceService");
ProjectResourceBuilderExtensions.cs (1)
346var kestrelEndpoints = options.ExcludeKestrelEndpoints ? [] : config.GetSection("Kestrel:Endpoints").GetChildren();
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 (4)
AspireOpenAIExtensions.cs (4)
71var configSection = builder.Configuration.GetSection(configurationSectionName); 72var namedConfigSection = configSection.GetSection(connectionName); 91configSection.GetSection("ClientOptions").Bind(options); 92namedConfigSection.GetSection("ClientOptions").Bind(options);
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");
dotnet-user-jwts (1)
Helpers\SigningKeysHandler.cs (1)
39.GetSection(GetSigningKeyPropertyName(scheme))
Kestrel.SampleApp (1)
Startup.cs (1)
154.Configure(context.Configuration.GetSection("Kestrel"), reloadOnChange: true)
Microsoft.AspNetCore (2)
WebHost.cs (2)
202loggingBuilder.AddConfiguration(hostingContext.Configuration.GetSection("Logging")); 246options.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(); 83var 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.BrowserTesting (10)
BrowserManagerConfiguration.cs (10)
79var defaultBrowserOptions = configuration.GetSection(nameof(GlobalBrowserOptions)); 85var defaultContextOptions = configuration.GetSection(nameof(GlobalContextOptions)); 88GlobalContextOptions = LoadContextOptions(configuration.GetSection(nameof(GlobalContextOptions))); 91var browsersOptions = configuration.GetSection(nameof(BrowserOptions)); 108var defaultContextOptionsSection = browser.GetSection("DefaultContextOptions"); 118var contextOptions = configuration.GetSection("ContextOptions"); 133configuration.GetSection(nameof(BrowserNewContextOptions.ExtraHTTPHeaders)), 161var section = configuration.GetSection(key); 198IgnoreDefaultArgs = BindArgumentMap(configuration.GetSection(nameof(BrowserTypeLaunchOptions.IgnoreAllDefaultArgs))), 209configuration.GetSection(nameof(BrowserTypeLaunchOptions.Args)),
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (2)
Latency\RequestLatencyTelemetryExtensionsTests.cs (1)
75.GetSection($"{nameof(RequestLatencyTelemetryOptions)}");
Logging\HttpLoggingServiceExtensionsTests.cs (1)
43services.AddHttpLoggingRedaction(configuration.GetSection("HttpLogging"));
Microsoft.AspNetCore.HeaderParsing.Tests (1)
HeaderParsingExtensionsTests.cs (1)
74.GetSection($"{nameof(HeaderParsingOptions)}");
Microsoft.AspNetCore.Hosting.Tests (1)
WebHostBuilderTests.cs (1)
1326var section = config.GetSection("nested");
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.Server.Kestrel.Core.Tests (4)
KestrelServerTests.cs (4)
781mockConfig.Setup(c => c.GetSection(It.IsAny<string>())).Returns<string>(name => currentConfig.GetSection(name)); 921mockConfig.Setup(c => c.GetSection(It.IsAny<string>())).Returns<string>(name => currentConfig.GetSection(name));
Microsoft.AspNetCore.Server.Kestrel.Tests (14)
KestrelConfigurationLoaderTests.cs (14)
50mockConfig.Setup(c => c.GetSection(It.IsAny<string>())).Returns<string>(currentConfig.GetSection); 1586mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); 1593mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.Never); 1618mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); 1636mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); 1655mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); 1667mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), reloadTimes); 1680mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); 1692mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.Never); 1706mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); 1716mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); 1791mockConfig.Verify(c => c.GetSection(It.IsNotIn("EndpointDefaults")), Times.Never); // It does read the EndpointDefaults sections 1800mockConfig.Verify(c => c.GetSection(It.IsAny<string>()), Times.AtLeastOnce); // Still need to load, even if endpoints have been processed
Microsoft.AspNetCore.SpaProxy (1)
SpaHostingStartup.cs (1)
28ConfigureOptions<SpaDevelopmentServerOptions>(services, configuration.GetSection("SpaProxyServer"));
Microsoft.Extensions.AmbientMetadata.Application (1)
ApplicationMetadataHostBuilderExtensions.cs (1)
33.ConfigureServices((hostBuilderContext, serviceCollection) => serviceCollection.AddApplicationMetadata(hostBuilderContext.Configuration.GetSection(sectionName)));
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
ApplicationMetadataExtensionsTests.cs (4)
38Assert.Throws<ArgumentNullException>(() => ((IServiceCollection)null!).AddApplicationMetadata(config.GetSection(string.Empty))); 79var expectedConfigSection = expectedConfig.GetSection(nameof(ApplicationMetadata)); 82var actualConfigSection = actualConfig.GetSection(nameof(ApplicationMetadata)); 108var configurationSection = config.GetSection(nameof(ApplicationMetadata));
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)
77IConfiguration section = parentPath == null ? _config : _config.GetSection(parentPath);
ConfigurationSection.cs (1)
89public 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 (5)
ConfigurationBinder.cs (5)
114configuration.GetSection(key).Bind(instance); 212IConfigurationSection section = configuration.GetSection(key); 307config.GetSection(GetPropertyName(property)), 1077var propertyBindingPoint = new BindingPoint(initialValue: config.GetSection(parameterName).Value, isReadOnly: false); 1082config.GetSection(parameterName),
Microsoft.Extensions.Configuration.KeyPerFile.Tests (8)
ConfigurationProviderTestBase.cs (8)
207var section1 = config.GetSection("Section1"); 216var section2 = config.GetSection("Section1:Section2"); 224section2 = section1.GetSection("Section2"); 232var section3a = section2.GetSection("Key3a"); 239var section3 = config.GetSection("Section3"); 243var section4 = config.GetSection("Section3:Section4"); 248section4 = config.GetSection("Section3").GetSection("Section4");
Microsoft.Extensions.Diagnostics (4)
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);
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
TelemetryHealthChecksPublisherExtensionsTests.cs (1)
60.GetSection(nameof(TelemetryHealthCheckPublisherOptions)));
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.Tests (4)
Linux\AcceptanceTest.cs (3)
57.GetSection(nameof(ResourceMonitoringOptions)); 109.GetSection(nameof(ResourceMonitoringOptions)); 158.GetSection(nameof(ResourceMonitoringOptions));
ResourceMonitoringExtensionsTests.cs (1)
162.GetSection(nameof(ResourceMonitoringOptions));
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Logging\FakeLoggerExtensionsTests.cs (1)
61var section = configRoot.GetSection("Logging");
Microsoft.Extensions.Hosting (2)
HostingHostBuilderExtensions.cs (2)
294logging.AddConfiguration(hostingContext.Configuration.GetSection("Logging")); 321metrics.AddConfiguration(hostingContext.Configuration.GetSection("Metrics"));
Microsoft.Extensions.Http.Diagnostics.Tests (2)
Latency\HttpClientLatencyTelemetryExtensionsTest.cs (1)
116.GetSection($"{nameof(HttpClientLatencyTelemetryOptions)}");
Logging\Internal\TestConfiguration.cs (1)
27.GetSection($"{nameof(LoggingOptions)}");
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 (3)
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 (2)
ConfigurationConsoleLoggerSettings.cs (1)
79var switches = _configuration.GetSection("LogLevel");
ConsoleLoggerExtensions.cs (1)
173return 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)
64var section = _configuration.GetSection(_options.Value.SectionName).GetSection(_serviceName); 84var candidate = section.GetSection(scheme); 97namedSection = section.GetSection(_endpointName);
Microsoft.Extensions.Telemetry.Tests (4)
Enrichment\ApplicationEnricherExtensionsTests.cs (1)
81.AddServiceLogEnricher(context.Configuration.GetSection("Serviceenrichersection")))
Enrichment\ProcessEnricherExtensionsTests.cs (1)
79.AddProcessLogEnricher(context.Configuration.GetSection(TestSectionName)))
Latency\LatencyConsoleExtensionsTests.cs (1)
75.GetSection($"{nameof(LatencyConsoleOptions)}");
Latency\LatencyContextExtensionTests.cs (1)
128.GetSection($"{nameof(LatencyContextOptions)}");
SignalRSamples (1)
Program.cs (1)
26factory.AddConfiguration(c.Configuration.GetSection("Logging"));