76 references to Configuration
ApiGateway (1)
Program.cs (1)
5.LoadFromConfig(builder.Configuration.GetSection("ReverseProxy"))
Aspire.Dashboard (8)
DashboardWebApplication.cs (8)
147if (builder.Configuration[DashboardConfigNames.DashboardConfigFilePathName.ConfigKey] is { Length: > 0 } configFilePath) 149builder.Configuration.AddJsonFile(configFilePath, optional: false, reloadOnChange: true); 153if (builder.Configuration[DashboardConfigNames.DashboardFileConfigDirectoryName.ConfigKey] is { Length: > 0 } fileConfigDirectory) 155builder.Configuration.AddKeyPerFile(directoryPath: fileConfigDirectory, optional: false, reloadOnChange: true); 158var dashboardConfigSection = builder.Configuration.GetSection("Dashboard"); 481new PostConfigureDashboardOptions(builder.Configuration).PostConfigure(name: string.Empty, dashboardOptions); 558builder.Configuration.AddInMemoryCollection(initialValues); 677builder.Configuration.Bind("Dashboard:Otlp:CertificateAuthOptions", options);
Aspire.Dashboard.Tests (8)
Integration\IntegrationTestHelpers.cs (2)
89var sources = ((IConfigurationBuilder)builder.Configuration).Sources; 97builder.Configuration.AddConfiguration(config);
Integration\Playwright\Infrastructure\DashboardServerFixture.cs (1)
59builder.Configuration.AddConfiguration(config);
Integration\StartupTests.cs (5)
164builder.Configuration.AddConfiguration(config); 170Assert.Equal(frontendBrowserToken, localBuilder.Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey]); 197builder.Configuration.AddConfiguration(config); 203var initialBrowserTokenProvidedByConfiguration = localBuilder?.Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey]; 214var updatedBrowserTokenProvidedByConfiguration = localBuilder?.Configuration[DashboardConfigNames.DashboardFrontendBrowserTokenName.ConfigKey];
CdkSample.ApiService (1)
Program.cs (1)
31clients.AddConfigurationClient(new Uri(builder.Configuration.GetConnectionString("appConfig")!));
Frontend (1)
Program.cs (1)
19var chatTopicArn = builder.Configuration["AWS:Resources:ChatTopicArn"];
Microsoft.AspNetCore (9)
WebApplicationBuilder.cs (9)
52Configuration.AddInMemoryCollection(new[] 115Configuration.AddInMemoryCollection(new[] 168Configuration.AddInMemoryCollection(new[] 213Host = new ConfigureHostBuilder(bootstrapHostBuilder.Context, Configuration, Services); 214WebHost = new ConfigureWebHostBuilder(webHostContext, Configuration, Services); 222webHostBuilder.UseSetting(WebHostDefaults.PreventHostingStartupKey, Configuration[WebHostDefaults.PreventHostingStartupKey]); 223webHostBuilder.UseSetting(WebHostDefaults.HostingStartupAssembliesKey, Configuration[WebHostDefaults.HostingStartupAssembliesKey]); 224webHostBuilder.UseSetting(WebHostDefaults.HostingStartupExcludeAssembliesKey, Configuration[WebHostDefaults.HostingStartupExcludeAssembliesKey]); 368IConfigurationManager IHostApplicationBuilder.Configuration => Configuration;
Microsoft.AspNetCore.Authentication.Test (1)
AuthenticationMiddlewareTests.cs (1)
160builder.Configuration.AddInMemoryCollection(new[]
Microsoft.AspNetCore.StaticAssets.Tests (2)
StaticAssetsIntegrationTests.cs (2)
148builder.Configuration["EnableStaticAssetsDevelopmentCaching"] = "true"; 258builder.Configuration["EnableStaticAssetsDevelopmentIntegrity"] = "true";
Microsoft.AspNetCore.Tests (43)
WebApplicationTests.cs (43)
176Assert.Equal("http://localhost:5001", builder.Configuration["urls"]); 1029Assert.Equal("command_line_one", builder.Configuration["one"]); 1030Assert.Equal("unprefixed_two", builder.Configuration["two"]); 1031Assert.Equal("DOTNET_three", builder.Configuration["three"]); 1032Assert.Equal("ASPNETCORE_four", builder.Configuration["four"]); 1043Assert.Equal("1", builder.Configuration["x"]); 1044Assert.Equal("Larry", builder.Configuration["name"]); 1045Assert.Equal("20", builder.Configuration["age"]); 1046Assert.Equal("Testing", builder.Configuration["environment"]); 1109Assert.Equal("value", builder.Configuration["A"]); 1110Assert.Equal("another", builder.Configuration["B"]); 1164Assert.Equal("A", builder.Configuration["A"]); 1165Assert.Equal("B", builder.Configuration["B"]); 1166Assert.Equal("C", builder.Configuration["C"]); 1167Assert.Equal("D", builder.Configuration["D"]); 1168Assert.Equal("E", builder.Configuration["E"]); 1169Assert.Equal("F", builder.Configuration["F"]); 1201builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1213Assert.Same(builder.Configuration, app.Configuration); 1245builder.Configuration.AddInMemoryCollection(new Dictionary<string, string>() 1256Assert.Same(builder.Configuration, app.Configuration); 1282Assert.Same(builder.Configuration, app.Configuration); 1390Assert.Same(config, builder.Configuration); 1394Assert.Same(app.Configuration, builder.Configuration); 1402builder.Services.AddSingleton<IConfiguration>(builder.Configuration); 1407Assert.Same(config, builder.Configuration); 1411Assert.Same(app.Configuration, builder.Configuration); 1427builder.Configuration.AddJsonStream(ms); 1429Assert.Equal("bar", builder.Configuration["foo"]); 1442builder.Configuration["FORWARDEDHEADERS_ENABLED"] = "true"; 1522builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> 1527Assert.Equal("bar", builder.Configuration["foo"]); 2250builder.Configuration[WebHostDefaults.ApplicationKey] = nameof(WebApplicationTests); 2251builder.Configuration[WebHostDefaults.EnvironmentKey] = envName; 2252builder.Configuration[WebHostDefaults.ContentRootKey] = contentRoot; 2282((IConfigurationBuilder)builder.Configuration).Sources.Clear(); 2307builder.Configuration.AddInMemoryCollection(new Dictionary<string, string> 2324((IConfigurationBuilder)builder.Configuration).Sources.Add(new RandomConfigurationSource()); 2342((IConfigurationBuilder)builder.Configuration).Sources.Add(configSource); 2356((IConfigurationBuilder)builder.Configuration).Sources.Add(configSource); 2370((IConfigurationBuilder)builder.Configuration).Sources.Add(configSource); 2387((IConfigurationBuilder)builder.Configuration).Sources.Add(new RandomConfigurationSource()); 2523Assert.Same(builder.Configuration, iHostApplicationBuilder.Configuration);
ParameterEndToEnd.ApiService (1)
Program.cs (1)
8int insertionRows = builder.Configuration.GetValue<int>("InsertionRows", 1);
PostgresEndToEnd.ApiService (1)
Program.cs (1)
18var connectionString = builder.Configuration.GetConnectionString("db8");