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)
141public bool PreferHostingUrls { get; set; }
Microsoft.AspNetCore.OpenApi.Tests (1)
Services\OpenApiDocumentServiceTestsBase.cs (1)
349public 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)
3136public bool PreferHostingUrls { get; set; }
3 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)
268serverAddressesFeature!.PreferHostingUrls = WebHostUtilities.ParseBool(_config[WebHostDefaults.PreferHostingUrlsKey]);
9 references to PreferHostingUrls
Microsoft.AspNetCore.Hosting.Tests (6)
WebHostTests.cs (6)
45Assert.False(serverAddressesFeature.PreferHostingUrls); 64Assert.False(serverAddressFeature.PreferHostingUrls); 83Assert.False(serverAddressFeature.PreferHostingUrls); 103Assert.False(serverAddressFeature.PreferHostingUrls); 115Assert.False(serverAddressesFeature.PreferHostingUrls); 132Assert.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)
178context.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),