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