ResolvedEndpoint
Class sealed net10.0
Represents a resolved endpoint with computed target and exposed ports.
namespace Aspire.Hosting.ApplicationModel;
public sealed class ResolvedEndpoint{ // ...}Constructors1
Section titled ConstructorsProperties3
Section titled PropertiesEndpointget; 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.