5 implementations of GetSetting
Microsoft.AspNetCore (1)
ConfigureWebHostBuilder.cs (1)
102public string? GetSetting(string key)
Microsoft.AspNetCore.Hosting (3)
GenericHost\HostingStartupWebHostBuilder.cs (1)
48public string? GetSetting(string key) => _builder.GetSetting(key);
GenericHost\WebHostBuilderBase.cs (1)
97public string? GetSetting(string key)
WebHostBuilder.cs (1)
69public string? GetSetting(string key)
Microsoft.AspNetCore.Hosting.Tests (1)
Fakes\GenericWebHostBuilderWrapper.cs (1)
60public string GetSetting(string key)
33 references to GetSetting
AutobahnTestApp (3)
Program.cs (3)
27if (string.Equals(webHostBuilder.GetSetting("server"), "Microsoft.AspNetCore.Server.HttpSys", System.StringComparison.Ordinal)) 44var urls = webHostBuilder.GetSetting(WebHostDefaults.ServerUrlsKey) ?? webHostBuilder.GetSetting("server.urls");
Microsoft.AspNetCore.Hosting.Tests (14)
WebHostBuilderTests.cs (14)
896Assert.Equal("1", builder.GetSetting("testhostingstartup1")); 897Assert.Equal("1", builder.GetSetting("testhostingstartup1_calls")); 916Assert.Equal("1", builder.GetSetting("testhostingstartup1")); 917Assert.Equal("1", builder.GetSetting("testhostingstartup1_calls")); 933Assert.Equal("0", builder.GetSetting("testhostingstartup")); 934Assert.Equal("1", builder.GetSetting("testhostingstartup1")); 935Assert.Equal("01", builder.GetSetting("testhostingstartup_chain")); 1054Assert.Null(builder.GetSetting("testhostingstartup1")); 1055Assert.Equal("0", builder.GetSetting("testhostingstartup_chain")); 1156Assert.Equal("0", builder.GetSetting("testhostingstartup")); 1171Assert.Null(builder.GetSetting("testhostingstartup")); 1187Assert.Equal("0", builder.GetSetting("testhostingstartup")); 1334Assert.Equal("nestedvalue", builder.GetSetting("key")); 1678.UseSetting("testhostingstartup_chain", builder.GetSetting("testhostingstartup_chain") + "0")
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
SimpleWithWebApplicationBuilderTests.cs (1)
205expectedWebRoot = Path.GetFullPath(Path.Combine(builder.GetSetting(WebHostDefaults.ContentRootKey), webRoot));
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
291var settingValue = builder.GetSetting(settingName);
Microsoft.AspNetCore.Server.IISIntegration (6)
WebHostBuilderIISExtensions.cs (6)
36if (hostBuilder.GetSetting(nameof(UseIISIntegration)) != null) 41var port = hostBuilder.GetSetting(ServerPort) ?? Environment.GetEnvironmentVariable($"ASPNETCORE_{ServerPort}"); 42var path = hostBuilder.GetSetting(ServerPath) ?? Environment.GetEnvironmentVariable($"ASPNETCORE_{ServerPath}"); 43var pairingToken = hostBuilder.GetSetting(PairingToken) ?? Environment.GetEnvironmentVariable($"ASPNETCORE_{PairingToken}"); 44var iisAuth = hostBuilder.GetSetting(IISAuth) ?? Environment.GetEnvironmentVariable($"ASPNETCORE_{IISAuth}"); 45var websocketsSupported = hostBuilder.GetSetting(IISWebSockets) ?? Environment.GetEnvironmentVariable($"ASPNETCORE_{IISWebSockets}");
Microsoft.AspNetCore.Server.IISIntegration.Tests (2)
IISMiddlewareTests.cs (2)
309Assert.Null(webHostBuilder.GetSetting(WebHostDefaults.ServerUrlsKey)); 310Assert.Null(webHostBuilder.GetSetting(WebHostDefaults.PreferHostingUrlsKey));
Microsoft.AspNetCore.Tests (1)
WebHostTests.cs (1)
26Assert.Equal("http://localhost:5001", builder.GetSetting(WebHostDefaults.ServerUrlsKey));
NegotiateAuthSample (1)
Program.cs (1)
19if (string.Equals("HttpSys", webBuilder.GetSetting("server"), StringComparison.OrdinalIgnoreCase))
ServerComparison.TestSites (2)
Program.cs (2)
32if (string.Equals(builder.GetSetting("server"), "Microsoft.AspNetCore.Server.HttpSys", StringComparison.OrdinalIgnoreCase)) 36if (string.Equals(builder.GetSetting("environment") ??
TestStartupAssembly1 (2)
TestHostingStartup1.cs (2)
15var calls = builder.GetSetting("testhostingstartup1_calls"); 24builder.UseSetting("testhostingstartup_chain", builder.GetSetting("testhostingstartup_chain") + "1");