15 references to ServerUrlsKey
AutobahnTestApp (2)
Program.cs (2)
44var urls = webHostBuilder.GetSetting(WebHostDefaults.ServerUrlsKey) ?? webHostBuilder.GetSetting("server.urls"); 45webHostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Empty);
Microsoft.AspNetCore.Hosting (5)
GenericHost\GenericWebHostService.cs (1)
71var urls = Configuration[WebHostDefaults.ServerUrlsKey];
Internal\WebHost.cs (1)
265var urls = _config[WebHostDefaults.ServerUrlsKey] ?? _config[DeprecatedServerUrlsKey];
Internal\WebHostOptions.cs (1)
29ServerUrls = GetConfig(WebHostDefaults.ServerUrlsKey);
WebHostBuilder.cs (2)
52if (string.IsNullOrEmpty(GetSetting(WebHostDefaults.ServerUrlsKey))) 55UseSetting(WebHostDefaults.ServerUrlsKey, Environment.GetEnvironmentVariable("ASPNETCORE_SERVER.URLS"));
Microsoft.AspNetCore.Hosting.Abstractions (1)
HostingAbstractionsWebHostBuilderExtensions.cs (1)
129return hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, string.Join(';', urls));
Microsoft.AspNetCore.Server.IISIntegration (1)
WebHostBuilderIISExtensions.cs (1)
84hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, address);
Microsoft.AspNetCore.Server.IISIntegration.Tests (3)
IISMiddlewareTests.cs (3)
309Assert.Null(webHostBuilder.GetSetting(WebHostDefaults.ServerUrlsKey)); 322Assert.Equal("http://127.0.0.1:12345", configuration[WebHostDefaults.ServerUrlsKey]); 350Assert.Equal("http://127.0.0.1:12345", configuration[WebHostDefaults.ServerUrlsKey]);
Microsoft.AspNetCore.Server.Kestrel.Tests (2)
HttpsConfigurationTests.cs (2)
33hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, address); 67hostBuilder.UseSetting(WebHostDefaults.ServerUrlsKey, $"{httpAddress};{httpsAddress}");
Microsoft.AspNetCore.Tests (1)
WebHostTests.cs (1)
26Assert.Equal("http://localhost:5001", builder.GetSetting(WebHostDefaults.ServerUrlsKey));