| File: Features\IServerAddressesFeature.cs | Web Access |
| Project: src\aspnetcore\src\Hosting\Server.Abstractions\src\Microsoft.AspNetCore.Hosting.Server.Abstractions.csproj (Microsoft.AspNetCore.Hosting.Server.Abstractions) |
// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. namespace Microsoft.AspNetCore.Hosting.Server.Features; /// <summary> /// Specifies the address used by the server. /// </summary> public interface IServerAddressesFeature { /// <summary> /// An <see cref="ICollection{T}" /> of addresses used by the server. /// </summary> ICollection<string> Addresses { get; } /// <summary> /// <see langword="true" /> to prefer URLs configured by the host rather than the server. /// </summary> bool PreferHostingUrls { get; set; } }