Skip to content
Docs Try Aspire

ResolvedEndpoint

Class sealed net10.0
📦 Aspire.Hosting v13.1.2
Represents a resolved endpoint with computed target and exposed ports.
namespace Aspire.Hosting.ApplicationModel;
public sealed class ResolvedEndpoint
{
// ...
}
View all constructors
Endpointget; init
Gets the original endpoint annotation.
ExposedPortget; init
Gets the computed exposed port (host/external port). The Value may be null if it should default to TargetPort or standard ports (80/443). The IsAllocated flag indicates whether this port was dynamically allocated vs. explicitly specified.
TargetPortget; init
Gets the computed target port (container/listening port). The Value may be null if the deployment tool should assign it (typically for default ProjectResource HTTP/HTTPS endpoints). The IsAllocated flag indicates whether this port was dynamically allocated vs. explicitly specified.
View all properties