# ResolvedEndpoint

- Kind: `class`
- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Version: `13.3.0`
- Namespace: `Aspire.Hosting.ApplicationModel`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResolvedEndpoint.cs)

Represents a resolved endpoint with computed target and exposed ports.

## Definition

```csharp
namespace Aspire.Hosting.ApplicationModel;

public sealed class ResolvedEndpoint
{
    // ...
}
```

## Constructors

- [ResolvedEndpoint](/reference/api/csharp/aspire.hosting/resolvedendpoint/constructors.md#constructor)

## Properties

- [Endpoint](/reference/api/csharp/aspire.hosting/resolvedendpoint/properties.md#endpoint) : [EndpointAnnotation](/reference/api/csharp/aspire.hosting/endpointannotation.md) `get; init` -- Gets the original endpoint annotation.
- [ExposedPort](/reference/api/csharp/aspire.hosting/resolvedendpoint/properties.md#exposedport) : [ResolvedPort](/reference/api/csharp/aspire.hosting/resolvedport.md) `get; 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.
- [TargetPort](/reference/api/csharp/aspire.hosting/resolvedendpoint/properties.md#targetport) : [ResolvedPort](/reference/api/csharp/aspire.hosting/resolvedport.md) `get; 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.
