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