3 interfaces inheriting from IConfiguration
Microsoft.Extensions.Configuration.Abstractions (3)
1 implementation of IConfiguration
Microsoft.AspNetCore.Components.WebAssembly (1)
629 references to IConfiguration
Aspire.Azure.AI.OpenAI (4)
Aspire.Azure.Data.Tables (4)
Aspire.Azure.Messaging.EventHubs (12)
Aspire.Azure.Messaging.ServiceBus (4)
Aspire.Azure.Messaging.WebPubSub (4)
Aspire.Azure.Search.Documents (4)
Aspire.Azure.Security.KeyVault (5)
Aspire.Azure.Storage.Blobs (4)
Aspire.Azure.Storage.Queues (4)
Aspire.Confluent.Kafka.Tests (4)
Aspire.Dashboard (16)
src\Shared\IConfigurationExtensions.cs (12)
17/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
20public static bool? GetBool(this IConfiguration configuration, string key)
46/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
50public static bool GetBool(this IConfiguration configuration, string key, bool defaultValue)
58/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
64public static Uri? GetUri(this IConfiguration configuration, string key, Uri? defaultValue = null)
88/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
94public static Uri[]? GetUris(this IConfiguration configuration, string key, Uri? defaultValue = null)
128/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
134public static T? GetEnum<T>(this IConfiguration configuration, string key, T? defaultValue = default)
157/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
161public static T GetEnum<T>(this IConfiguration configuration, string key)
Aspire.Dashboard.Components.Tests (3)
Aspire.Dashboard.Tests (1)
Aspire.Hosting (28)
src\Shared\IConfigurationExtensions.cs (12)
17/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
20public static bool? GetBool(this IConfiguration configuration, string key)
46/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
50public static bool GetBool(this IConfiguration configuration, string key, bool defaultValue)
58/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
64public static Uri? GetUri(this IConfiguration configuration, string key, Uri? defaultValue = null)
88/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
94public static Uri[]? GetUris(this IConfiguration configuration, string key, Uri? defaultValue = null)
128/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
134public static T? GetEnum<T>(this IConfiguration configuration, string key, T? defaultValue = default)
157/// <param name="configuration">The <see cref="IConfiguration"/> this method extends.</param>
161public static T GetEnum<T>(this IConfiguration configuration, string key)
Aspire.Hosting.Azure (12)
Aspire.Hosting.Dapr (2)
Aspire.Hosting.PostgreSQL (2)
Aspire.Hosting.Testing.Tests (4)
Aspire.Hosting.Tests (9)
Aspire.Keycloak.Authentication (2)
AspireKeycloakExtensions.cs (2)
87.Configure<IConfiguration, IHttpClientFactory, IHostEnvironment>((options, configuration, httpClientFactory, hostEnvironment) =>
166.Configure<IConfiguration, IHttpClientFactory, IHostEnvironment>((options, configuration, httpClientFactory, hostEnvironment) =>
Aspire.Microsoft.EntityFrameworkCore.Cosmos (1)
Aspire.Microsoft.EntityFrameworkCore.SqlServer (1)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL (1)
Aspire.Oracle.EntityFrameworkCore (1)
Aspire.Pomelo.EntityFrameworkCore.MySql (1)
Aspire.StackExchange.Redis (1)
BasketService (2)
blazor-devserver (4)
BlazorServerApp (2)
ClaimsTransformation (2)
Cookies (2)
CustomAuthorizationFailureResponse (2)
DefaultBuilder.SampleApp (2)
DynamicSchemes (2)
HealthChecksSample (6)
HostedBlazorWebassemblyApp.Server (2)
HostFilteringSample (2)
Identity.DefaultUI.WebSite (8)
Identity.ExternalClaims (2)
InProcessWebSite (4)
JwtBearerSample (2)
Kestrel.SampleApp (1)
Microsoft.AspNetCore (19)
WebHost.cs (11)
124/// load <see cref="IConfiguration"/> from 'appsettings.json' and 'appsettings.[<see cref="IHostEnvironment.EnvironmentName"/>].json',
125/// load <see cref="IConfiguration"/> from User Secrets when <see cref="IHostEnvironment.EnvironmentName"/> is 'Development' using the entry assembly,
126/// load <see cref="IConfiguration"/> from environment variables,
143/// load <see cref="IConfiguration"/> from 'appsettings.json' and 'appsettings.[<see cref="IHostEnvironment.EnvironmentName"/>].json',
144/// load <see cref="IConfiguration"/> from User Secrets when <see cref="IHostEnvironment.EnvironmentName"/> is 'Development' using the entry assembly,
145/// load <see cref="IConfiguration"/> from environment variables,
146/// load <see cref="IConfiguration"/> from supplied command line args,
293/// load <see cref="IConfiguration"/> from 'appsettings.json' and 'appsettings.[<see cref="IHostEnvironment.EnvironmentName"/>].json',
294/// load <see cref="IConfiguration"/> from User Secrets when <see cref="IHostEnvironment.EnvironmentName"/> is 'Development' using the entry assembly,
295/// load <see cref="IConfiguration"/> from environment variables,
296/// load <see cref="IConfiguration"/> from supplied command line args,
Microsoft.AspNetCore.Authentication (6)
Microsoft.AspNetCore.Authentication.Abstractions (1)
Microsoft.AspNetCore.Authentication.JwtBearer (2)
Microsoft.AspNetCore.Authentication.OpenIdConnect (2)
Microsoft.AspNetCore.Authentication.Test (14)
Microsoft.AspNetCore.AzureAppServices.HostingStartup (4)
Microsoft.AspNetCore.BrowserTesting (6)
Microsoft.AspNetCore.Components.Endpoints (2)
Microsoft.AspNetCore.Components.Endpoints.Tests (4)
Microsoft.AspNetCore.Components.Server (2)
Microsoft.AspNetCore.Components.Server.Tests (1)
Microsoft.AspNetCore.Components.WebAssembly (5)
Microsoft.AspNetCore.Components.WebAssembly.Tests (3)
Microsoft.AspNetCore.DataProtection (1)
Microsoft.AspNetCore.DataProtection.Tests (2)
Microsoft.AspNetCore.Hosting (20)
Microsoft.AspNetCore.Hosting.Abstractions (7)
Microsoft.AspNetCore.Hosting.Tests (24)
Microsoft.AspNetCore.HttpsPolicy (3)
Microsoft.AspNetCore.Identity.EntityFrameworkCore.Test (9)
Microsoft.AspNetCore.Identity.InMemory.Test (2)
Microsoft.AspNetCore.Identity.Test (21)
Microsoft.AspNetCore.Mvc.FunctionalTests (5)
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Microsoft.AspNetCore.Mvc.Test (5)
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
Microsoft.AspNetCore.Routing.FunctionalTests (4)
Microsoft.AspNetCore.Server.IIS (3)
Microsoft.AspNetCore.Server.IISIntegration.Tests (4)
Microsoft.AspNetCore.Server.Kestrel.Core (10)
Microsoft.AspNetCore.Server.Kestrel.Core.Tests (2)
Microsoft.AspNetCore.Server.Kestrel.Tests (3)
Microsoft.AspNetCore.StaticAssets (5)
Microsoft.AspNetCore.Tests (11)
Microsoft.Extensions.Configuration (15)
Microsoft.Extensions.Configuration.Abstractions (12)
Microsoft.Extensions.Configuration.Binder (21)
ConfigurationBinder.cs (21)
37public static T? Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration)
51public static T? Get<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, Action<BinderOptions>? configureOptions)
73public static object? Get(this IConfiguration configuration, Type type)
88this IConfiguration configuration,
111public static void Bind(this IConfiguration configuration, string key, object? instance)
124public static void Bind(this IConfiguration configuration, object? instance)
135public static void Bind(this IConfiguration configuration, object? instance, Action<BinderOptions>? configureOptions)
156public static T? GetValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, string key)
171public static T? GetValue<[DynamicallyAccessedMembers(DynamicallyAccessedMemberTypes.All)] T>(this IConfiguration configuration, string key, T defaultValue)
185this IConfiguration configuration,
204this IConfiguration configuration,
223private static void BindProperties(object instance, IConfiguration configuration, BinderOptions options, ParameterInfo[]? constructorParameters)
290private static void BindProperty(PropertyInfo property, object instance, IConfiguration config, BinderOptions options)
325IConfiguration config,
497IConfiguration config,
614IConfiguration config, BinderOptions options)
685IConfiguration config, BinderOptions options)
755IConfiguration config, BinderOptions options)
791private static Array BindArray(Type type, IEnumerable? source, IConfiguration config, BinderOptions options)
850private static object? BindSet(Type type, IEnumerable? source, IConfiguration config, BinderOptions options)
1067private static object? BindParameter(ParameterInfo parameter, Type type, IConfiguration config,
Microsoft.Extensions.Diagnostics (10)
Microsoft.Extensions.Diagnostics.HealthChecks.Common.Tests (1)
Microsoft.Extensions.Hosting (56)
Microsoft.Extensions.Hosting.Abstractions (4)
Microsoft.Extensions.Http (4)
Microsoft.Extensions.Http.Resilience.Tests (4)
Microsoft.Extensions.Logging.AzureAppServices (11)
Microsoft.Extensions.Logging.Configuration (12)
Microsoft.Extensions.Logging.Console (9)
Microsoft.Extensions.Options.ConfigurationExtensions (31)
Microsoft.Extensions.ServiceDiscovery (6)
Microsoft.Extensions.ServiceDiscovery.Dns.Tests (1)
Microsoft.Extensions.ServiceDiscovery.Tests (10)
Microsoft.Extensions.ServiceDiscovery.Yarp.Tests (4)
Mvc.RoutingWebSite (2)
Negotiate.Client (2)
Negotiate.Server (2)
OpenIdConnectSample (2)
OrderProcessor (2)
PathSchemeSelection (2)
Sample (1)
SimpleWebSiteWithWebApplicationBuilder (1)
SocialSample (2)
StaticFilesAuth (2)
Stress.TelemetryService (1)
Templates.Blazor.WebAssembly.Auth.Tests (1)
Templates.Blazor.WebAssembly.Tests (1)
Templates.Mvc.Tests (1)
Templates.Tests (1)
WsFedSample (2)