4 writes to Configuration
Microsoft.AspNetCore.Hosting (4)
GenericHost\WebHostBuilderBase.cs (2)
82
Configuration
= context.Configuration,
93
webHostContext.
Configuration
= context.Configuration;
WebHostBuilder.cs (2)
60
Configuration
= _config
284
_context.
Configuration
= configuration;
30 references to Configuration
Aspire.Dashboard (1)
DashboardWebApplication.cs (1)
571
var kestrelSection = context.
Configuration
.GetSection("Kestrel");
CreateDefaultBuilderApp (4)
Program.cs (4)
49
if (!string.Equals("settingsValue", context.
Configuration
["settingsKey"], StringComparison.Ordinal))
55
if (!string.Equals("devSettingsValue", context.
Configuration
["devSettingsKey"], StringComparison.Ordinal))
63
if (!string.Equals("envValue", context.
Configuration
["envKey"], StringComparison.Ordinal))
69
if (!string.Equals("cliValue", context.
Configuration
["cliKey"], StringComparison.Ordinal))
CreateDefaultBuilderOfTApp (4)
Program.cs (4)
61
if (!string.Equals("settingsValue", context.
Configuration
["settingsKey"], StringComparison.Ordinal))
67
if (!string.Equals("devSettingsValue", context.
Configuration
["devSettingsKey"], StringComparison.Ordinal))
75
if (!string.Equals("envValue", context.
Configuration
["envKey"], StringComparison.Ordinal))
81
if (!string.Equals("cliValue", context.
Configuration
["cliKey"], StringComparison.Ordinal))
Http2SampleApp (1)
Program.cs (1)
29
var basePort = context.
Configuration
.GetValue<int?>("BASE_PORT") ?? 5000;
InteropWebsite (1)
Program.cs (1)
48
var useTls = context.
Configuration
.GetValue("use_tls", false);
Kestrel.SampleApp (3)
Startup.cs (3)
82
ShowConfig(context.
Configuration
);
85
var basePort = context.
Configuration
.GetValue<int?>("BASE_PORT") ?? 5000;
154
.Configure(context.
Configuration
.GetSection("Kestrel"), reloadOnChange: true)
Microsoft.AspNetCore (5)
WebHost.cs (5)
202
loggingBuilder.AddConfiguration(hostingContext.
Configuration
.GetSection("Logging"));
223
StaticWebAssetsLoader.UseStaticWebAssets(ctx.HostingEnvironment, ctx.
Configuration
);
246
options.Configure(builderContext.
Configuration
.GetSection("Kestrel"), reloadOnChange: true);
259
var hosts = hostingContext.
Configuration
["AllowedHosts"]?.Split(new[] { ';' }, StringSplitOptions.RemoveEmptyEntries);
266
new ConfigurationChangeTokenSource<HostFilteringOptions>(hostingContext.
Configuration
));
Microsoft.AspNetCore.Hosting (2)
GenericHost\GenericWebHostBuilder.cs (1)
385
return _context.
Configuration
;
WebHostBuilderExtensions.cs (1)
256
StaticWebAssetsLoader.UseStaticWebAssets(context.HostingEnvironment, context.
Configuration
);
Microsoft.AspNetCore.Hosting.Tests (6)
WebHostBuilderTests.cs (6)
255
Assert.NotNull(context.
Configuration
);
331
Assert.Equal("value1", context.
Configuration
["key1"]);
351
Assert.Equal("value1", context.
Configuration
["key1"]);
1113
Assert.Equal("appvalue", context.
Configuration
["appconfig"]);
1117
Assert.Equal("appvalue", context.
Configuration
["appconfig"]);
1121
Assert.Equal("appvalue", context.
Configuration
["appconfig"]);
Negotiate.Server (1)
Program.cs (1)
30
if (string.Equals("true", context.
Configuration
["Persist"]))
SignalRSamples (1)
Program.cs (1)
26
factory.AddConfiguration(c.
Configuration
.GetSection("Logging"));
SystemdTestApp (1)
Startup.cs (1)
52
var basePort = context.
Configuration
.GetValue<int?>("BASE_PORT") ?? 5000;