6 implementations of PreferHostingUrls
Microsoft.AspNetCore.Hosting (1)
Server\Features\ServerAddressesFeature.cs (1)
17public bool PreferHostingUrls { get; set; }
Microsoft.AspNetCore.Hosting.Tests (1)
GenericWebHostBuilderTests.cs (1)
223public bool PreferHostingUrls { get; set; }
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
366public bool PreferHostingUrls { get; set; }
Microsoft.AspNetCore.Server.IIS (1)
Core\ServerAddressesFeature.cs (1)
11public bool PreferHostingUrls { get; set; }
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\ServerAddressesFeature.cs (1)
17public bool PreferHostingUrls { get; set; }
Microsoft.AspNetCore.Tests (1)
WebApplicationTests.cs (1)
3138public bool PreferHostingUrls { get; set; }
6 writes to PreferHostingUrls
Microsoft.AspNetCore.Hosting (3)
GenericHost\GenericWebHostService.cs (2)
108serverAddressesFeature!.PreferHostingUrls = WebHostUtilities.ParseBool(preferHostingUrlsConfig); 112serverAddressesFeature!.PreferHostingUrls = Options.WebHostOptions.PreferHostingUrls;
Internal\WebHost.cs (1)
269serverAddressesFeature!.PreferHostingUrls = WebHostUtilities.ParseBool(_config[WebHostDefaults.PreferHostingUrlsKey]);
Microsoft.AspNetCore.Mvc.Testing (1)
WebApplicationFactory.cs (1)
233saf.PreferHostingUrls = true;
Microsoft.AspNetCore.Server.HttpSys.FunctionalTests (2)
MessagePumpTests.cs (2)
28serverAddressesFeature.PreferHostingUrls = true; 66serverAddressesFeature.PreferHostingUrls = true;
9 references to PreferHostingUrls
Microsoft.AspNetCore.Hosting.Tests (6)
WebHostTests.cs (6)
47Assert.False(serverAddressesFeature.PreferHostingUrls); 66Assert.False(serverAddressFeature.PreferHostingUrls); 85Assert.False(serverAddressFeature.PreferHostingUrls); 105Assert.False(serverAddressFeature.PreferHostingUrls); 117Assert.False(serverAddressesFeature.PreferHostingUrls); 134Assert.True(host.ServerFeatures.Get<IServerAddressesFeature>().PreferHostingUrls);
Microsoft.AspNetCore.Server.HttpSys (1)
MessagePump.Log.cs (1)
46$"Overriding endpoints added to {nameof(HttpSysOptions.UrlPrefixes)} since {nameof(IServerAddressesFeature.PreferHostingUrls)} is set to true. Binding to address(es) '{{ServerAddresses}}' instead.",
Microsoft.AspNetCore.Server.Kestrel.Core (1)
Internal\AddressBinder.cs (1)
200context.Logger.LogInformation(CoreStrings.OverridingWithPreferHostingUrls, nameof(IServerAddressesFeature.PreferHostingUrls), joined);
Sockets.BindTests (1)
src\Servers\Kestrel\test\BindTests\AddressRegistrationTests.cs (1)
638string.Equals(CoreStrings.FormatOverridingWithPreferHostingUrls(nameof(IServerAddressesFeature.PreferHostingUrls), useUrlsAddress),