22 instantiations of ConfigurationManager
Aspire.Dashboard.Components.Tests (2)
Controls\ApplicationNameTests.cs (2)
21Services.AddSingleton<IConfiguration>(new ConfigurationManager()); 39Services.AddSingleton<IConfiguration>(new ConfigurationManager());
Aspire.Dashboard.Tests (6)
Integration\DashboardClientAuthTests.cs (1)
132configuration: new ConfigurationManager(),
Integration\IntegrationTestHelpers.cs (1)
72var config = new ConfigurationManager()
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
46var config = new ConfigurationManager().AddInMemoryCollection(Configuration).Build();
Integration\StartupTests.cs (2)
155var config = new ConfigurationManager() 190var config = new ConfigurationManager()
Model\DashboardClientTests.cs (1)
26_configuration = new ConfigurationManager();
Aspire.Hosting.Azure.Tests (1)
AzureBicepProvisionerTests.cs (1)
180var config = new ConfigurationManager();
Aspire.Hosting.Testing (1)
DistributedApplicationFactory.cs (1)
158var cfg = hostBuilderOptions.Configuration ??= new();
Aspire.Hosting.Tests (1)
Utils\TestDistributedApplicationBuilder.cs (1)
96var cfg = hostBuilderOptions.Configuration ??= new();
Microsoft.AspNetCore (3)
WebApplicationBuilder.cs (3)
36var configuration = new ConfigurationManager(); 84var configuration = new ConfigurationManager(); 151var configuration = new ConfigurationManager();
Microsoft.AspNetCore.Authentication (1)
DefaultAuthenticationConfigurationProvider.cs (1)
14public DefaultAuthenticationConfigurationProvider() : this(new ConfigurationManager())
Microsoft.AspNetCore.Authentication.Test (4)
AuthenticationMiddlewareTests.cs (1)
213serviceCollection.AddSingleton<IConfiguration>(new ConfigurationManager());
RemoteAuthenticationTests.cs (1)
22s.AddSingleton<IConfiguration>(new ConfigurationManager());
WsFederation\WsFederationTest.cs (1)
30services.AddSingleton<IConfiguration>(new ConfigurationManager());
WsFederation\WsFederationTest_Handler.cs (1)
28services.AddSingleton<IConfiguration>(new ConfigurationManager());
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
18private readonly ConfigurationManager _hostConfiguration = new();
Microsoft.Extensions.Hosting (2)
HostApplicationBuilder.cs (2)
87Configuration = settings.Configuration ?? new ConfigurationManager(); 123Configuration = settings.Configuration ?? new ConfigurationManager();
78 references to ConfigurationManager
Aspire.Azure.AI.OpenAI.Tests (1)
ConformanceTests.cs (1)
57protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Azure.Data.Tables.Tests (1)
ConformanceTests.cs (1)
69protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Azure.Messaging.ServiceBus.Tests (2)
ConformanceTests_Queue.cs (1)
21protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
ConformanceTests_Topic.cs (1)
22protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Azure.Messaging.WebPubSub.Tests (1)
ConformanceTests.cs (1)
64protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Azure.Search.Documents.Tests (1)
ConformanceTests.cs (1)
57protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Azure.Security.KeyVault.Tests (1)
ConformanceTests.cs (1)
63protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Azure.Storage.Blobs.Tests (1)
ConformanceTests.cs (1)
70protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Azure.Storage.Queues.Tests (1)
ConformanceTests.cs (1)
72protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Components.Common.Tests (1)
ConformanceTests.cs (1)
66protected abstract void PopulateConfiguration(ConfigurationManager configuration, string? key = null);
Aspire.Confluent.Kafka.Tests (2)
ConsumerConformanceTests.cs (1)
24protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
ProducerConformanceTests.cs (1)
25protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Elastic.Clients.Elasticsearch.Tests (1)
ConformanceTests.cs (1)
34protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Hosting (2)
DistributedApplicationBuilder.cs (1)
58public ConfigurationManager Configuration => _innerBuilder.Configuration;
IDistributedApplicationBuilder.cs (1)
56public ConfigurationManager Configuration { get; }
Aspire.Hosting.Azure.Tests (1)
AzureBicepProvisionerTests.cs (1)
180var config = new ConfigurationManager();
Aspire.Hosting.Testing (3)
DistributedApplicationFactory.cs (1)
158var cfg = hostBuilderOptions.Configuration ??= new();
DistributedApplicationTestingBuilder.cs (2)
160public ConfigurationManager Configuration => innerBuilder.Configuration; 244ConfigurationManager Configuration { get; }
Aspire.Hosting.Tests (2)
Utils\TestDistributedApplicationBuilder.cs (2)
96var cfg = hostBuilderOptions.Configuration ??= new(); 120public ConfigurationManager Configuration => _innerBuilder.Configuration;
Aspire.Microsoft.Azure.Cosmos.Tests (1)
ConformanceTests.cs (1)
21protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Microsoft.Data.SqlClient.Tests (1)
ConformanceTests.cs (1)
60protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Microsoft.EntityFrameworkCore.Cosmos.Tests (1)
ConformanceTests.cs (1)
29protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Microsoft.EntityFrameworkCore.SqlServer.Tests (2)
ConformanceTests.cs (1)
73protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
ConformanceTests_TypeSpecificConfig.cs (1)
17protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Milvus.Client.Tests (1)
ConformanceTests.cs (1)
52protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.MongoDB.Driver.Tests (1)
ConformanceTests.cs (1)
61protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.MySqlConnector.Tests (1)
ConformanceTests.cs (1)
66protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.NATS.Net.Tests (1)
ConformanceTests.cs (1)
51protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Npgsql.EntityFrameworkCore.PostgreSQL.Tests (2)
ConformanceTests.cs (1)
87protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
ConformanceTests_TypeSpecificConfig.cs (1)
16protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Npgsql.Tests (1)
ConformanceTests.cs (1)
68protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.OpenAI.Tests (1)
ConformanceTests.cs (1)
49protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Oracle.EntityFrameworkCore.Tests (2)
ConformanceTests.cs (1)
69protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
ConformanceTests_TypeSpecificConfig.cs (1)
16protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Pomelo.EntityFrameworkCore.MySql.Tests (2)
ConformanceTests.cs (1)
83protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
ConformanceTests_TypeSpecificConfig.cs (1)
16protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.Qdrant.Client.Tests (1)
ConformanceTests.cs (1)
54protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.RabbitMQ.Client.Tests (1)
ConformanceTests.cs (1)
72protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
Aspire.StackExchange.Redis.Tests (2)
AspireRedisExtensionsTests.cs (1)
385private void PopulateConfiguration(ConfigurationManager configuration, string? key = null) =>
ConformanceTests.cs (1)
67protected override void PopulateConfiguration(ConfigurationManager configuration, string? key = null)
ConfigurationSchemaGenerator.Tests (1)
GeneratorTests.cs (1)
692MetadataReference.CreateFromFile(typeof(ConfigurationManager).Assembly.Location),
Microsoft.AspNetCore (12)
ConfigureHostBuilder.cs (2)
18private readonly ConfigurationManager _configuration; 27ConfigurationManager configuration,
ConfigureWebHostBuilder.cs (2)
19private readonly ConfigurationManager _configuration; 23internal ConfigureWebHostBuilder(WebHostBuilderContext webHostBuilderContext, ConfigurationManager configuration, IServiceCollection services)
WebApplicationBuilder.cs (8)
36var configuration = new ConfigurationManager(); 84var configuration = new ConfigurationManager(); 151var configuration = new ConfigurationManager(); 242private static void SetDefaultContentRoot(WebApplicationOptions options, ConfigurationManager configuration) 267private static void ApplyDefaultAppConfigurationSlim(IHostEnvironment env, ConfigurationManager configuration, string[]? args) 296static bool GetReloadConfigOnChangeValue(ConfigurationManager configuration) 311private static void AddDefaultServicesSlim(ConfigurationManager configuration, IServiceCollection services) 342public ConfigurationManager Configuration => _hostApplicationBuilder.Configuration;
Microsoft.AspNetCore.App.Analyzers.Test (1)
Verifiers\CSharpAnalyzerVerifier.cs (1)
99TrimAssemblyExtension(typeof(Microsoft.Extensions.Configuration.ConfigurationManager).Assembly.Location),
Microsoft.AspNetCore.Mvc.Testing (1)
DeferredHostBuilder.cs (1)
18private readonly ConfigurationManager _hostConfiguration = new();
Microsoft.AspNetCore.Tests (8)
WebApplicationTests.cs (8)
704var config = Assert.IsType<ConfigurationManager>(webApplication.Configuration); 729var config = Assert.IsType<ConfigurationManager>(webApplication.Configuration); 762var config = Assert.IsType<ConfigurationManager>(webApplication.Configuration); 777var config = Assert.IsType<ConfigurationManager>(webApplication.Configuration);
Microsoft.Extensions.Configuration (9)
ConfigurationManager.cs (6)
175private readonly ConfigurationManager _current; 177public ConfigurationManagerDebugView(ConfigurationManager current) 189private readonly ConfigurationManager _config; 191public ConfigurationSources(ConfigurationManager config) 266private readonly ConfigurationManager _config; 268public ConfigurationBuilderProperties(ConfigurationManager config)
InternalConfigurationRootExtensions.cs (1)
23using ReferenceCountedProviders? reference = (root as ConfigurationManager)?.GetProvidersReference();
ReferenceCountedProvidersManager.cs (2)
49throw new ObjectDisposedException(nameof(ConfigurationManager)); 67throw new ObjectDisposedException(nameof(ConfigurationManager));
Microsoft.Extensions.Hosting (4)
HostApplicationBuilder.cs (2)
199public ConfigurationManager Configuration { get; } 272ConfigurationManager config = _hostApplicationBuilder.Configuration;
HostApplicationBuilderSettings.cs (2)
50/// <see cref="IHost"/> disposes the <see cref="ConfigurationManager"/>. 52public ConfigurationManager? Configuration { get; set; }