4 implementations of GetSection
Microsoft.AspNetCore.Components.WebAssembly (1)
Microsoft.Extensions.Configuration (3)
476 references to GetSection
Aspire.Azure.AI.Inference (5)
Aspire.Azure.AI.OpenAI (5)
Aspire.Azure.Data.Tables (5)
Aspire.Azure.Messaging.EventHubs (5)
Aspire.Azure.Messaging.ServiceBus (5)
Aspire.Azure.Messaging.WebPubSub (5)
Aspire.Azure.Npgsql.EntityFrameworkCore.PostgreSQL (3)
Aspire.Azure.Search.Documents (5)
Aspire.Azure.Security.KeyVault (7)
Aspire.Azure.Storage.Blobs (5)
Aspire.Azure.Storage.Files.DataLake (5)
Aspire.Azure.Storage.Queues (5)
Aspire.Confluent.Kafka (8)
Aspire.Dashboard (1)
Aspire.Hosting (5)
Aspire.Hosting.Browsers (2)
Aspire.Hosting.Browsers.Tests (2)
Aspire.Hosting.RemoteHost (1)
Aspire.Microsoft.Azure.Cosmos (2)
Aspire.Microsoft.Data.SqlClient (2)
Aspire.Microsoft.EntityFrameworkCore.Cosmos (3)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (3)
Aspire.Microsoft.Extensions.Configuration.AzureAppConfiguration (6)
Aspire.Milvus.Client (2)
Aspire.MongoDB.Driver (2)
Aspire.MongoDB.EntityFrameworkCore (3)
Aspire.MySqlConnector (2)
Aspire.NATS.Net (2)
Aspire.Npgsql (2)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (3)
Aspire.OpenAI (5)
Aspire.Oracle.EntityFrameworkCore (3)
Aspire.Pomelo.EntityFrameworkCore.MySql (3)
Aspire.Qdrant.Client (2)
Aspire.RabbitMQ.Client (4)
Aspire.Seq (2)
Aspire.StackExchange.Redis (3)
dotnet-user-jwts (2)
Microsoft.AspNetCore (2)
Microsoft.AspNetCore.Authentication (2)
Microsoft.AspNetCore.Authentication.JwtBearer (3)
Microsoft.AspNetCore.Authentication.OpenIdConnect (4)
Microsoft.AspNetCore.Diagnostics.Middleware (14)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (6)
Microsoft.AspNetCore.HeaderParsing (3)
Microsoft.AspNetCore.HeaderParsing.Tests (1)
Microsoft.AspNetCore.Server.Kestrel.Core (9)
Microsoft.AspNetCore.SpaProxy (1)
Microsoft.Extensions.AmbientMetadata.Application (2)
Microsoft.Extensions.AmbientMetadata.Application.Tests (4)
Microsoft.Extensions.AmbientMetadata.Build.Tests (3)
Microsoft.Extensions.Compliance.Abstractions.Tests (1)
Microsoft.Extensions.Compliance.Redaction (1)
Microsoft.Extensions.Compliance.Redaction.Tests (1)
Microsoft.Extensions.Compliance.Testing.Tests (1)
Microsoft.Extensions.Configuration (3)
Microsoft.Extensions.Configuration.Abstractions (2)
Microsoft.Extensions.Configuration.Binder (4)
Microsoft.Extensions.Diagnostics (8)
Microsoft.Extensions.Diagnostics.HealthChecks.Common (1)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
Microsoft.Extensions.Diagnostics.HealthChecks.ResourceUtilization (6)
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)
Microsoft.Extensions.Diagnostics.Probes.Tests (3)
Microsoft.Extensions.Diagnostics.ResourceMonitoring (10)
Microsoft.Extensions.Diagnostics.ResourceMonitoring.Tests (1)
Microsoft.Extensions.Diagnostics.Testing (91)
Microsoft.Extensions.Diagnostics.Testing.Tests (1)
Microsoft.Extensions.Hosting (2)
Microsoft.Extensions.Http.Diagnostics (8)
Microsoft.Extensions.Http.Diagnostics.Tests (10)
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)
Microsoft.Extensions.Logging.AzureAppServices (3)
Microsoft.Extensions.Logging.Configuration (4)
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);
Microsoft.Extensions.ObjectPool.DependencyInjection.Tests (2)
Microsoft.Extensions.Options.ConfigurationExtensions (1)
Microsoft.Extensions.ServiceDiscovery (4)
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);
Microsoft.Extensions.Telemetry.Tests (5)
Microsoft.Gen.BuildMetadata.Generated.Tests (2)
Microsoft.Gen.BuildMetadata.Unit.Tests (2)