41 references to Configuration
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
316var isContainer = _app.Configuration.GetBool("DOTNET_RUNNING_IN_CONTAINER") ?? false;
Microsoft.AspNetCore.FunctionalTests (1)
WebApplicationFunctionalTests.cs (1)
140using var registration = app.Configuration.GetReloadToken().RegisterChangeCallback(
Microsoft.AspNetCore.Tests (39)
WebApplicationTests.cs (39)
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); 1065Assert.Equal("1", app.Configuration["x"]); 1066Assert.Equal("Larry", app.Configuration["name"]); 1067Assert.Equal("20", app.Configuration["age"]); 1068Assert.Equal("Testing", app.Configuration["environment"]); 1106Assert.Equal("value", app.Configuration["A"]); 1107Assert.Equal("another", app.Configuration["B"]); 1157Assert.Equal("A", app.Configuration["A"]); 1158Assert.Equal("B", app.Configuration["B"]); 1159Assert.Equal("C", app.Configuration["C"]); 1160Assert.Equal("D", app.Configuration["D"]); 1161Assert.Equal("E", app.Configuration["E"]); 1162Assert.Equal("F", app.Configuration["F"]); 1208Assert.True(string.IsNullOrEmpty(app.Configuration["A"])); 1209Assert.True(string.IsNullOrEmpty(app.Configuration["C"])); 1211Assert.Equal("B", app.Configuration["B"]); 1213Assert.Same(builder.Configuration, app.Configuration); 1252Assert.True(string.IsNullOrEmpty(app.Configuration["B"])); 1254Assert.Equal("A", app.Configuration["A"]); 1256Assert.Same(builder.Configuration, app.Configuration); 1279Assert.Equal("A", app.Configuration["A"]); 1280Assert.Equal("B", app.Configuration["B"]); 1282Assert.Same(builder.Configuration, app.Configuration); 1335Assert.Single(((IConfigurationRoot)app.Configuration).Providers.OfType<RandomConfigurationProvider>()); 1394Assert.Same(app.Configuration, builder.Configuration); 1411Assert.Same(app.Configuration, builder.Configuration); 1433Assert.Equal("bar", app.Configuration["foo"]); 1540Assert.Equal("bar", app.Configuration["foo"]); 2101Assert.Equal("value", app.Configuration["testhostingstartup:config"]); 2111Assert.Equal("value", app.Configuration["testhostingstartup:config"]); 2126Assert.Equal("value", app.Configuration["testhostingstartup:config"]); 2315Assert.Contains("foo=bar (MemoryConfigurationProvider)", ((IConfigurationRoot)app.Configuration).GetDebugView()); 2328var value0 = app.Configuration["Random"]; 2329((IConfigurationRoot)app.Configuration).Reload(); 2330var value1 = app.Configuration["Random"]; 2391Assert.Single(((IConfigurationRoot)app.Configuration).Providers.OfType<RandomConfigurationProvider>());