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