# ResolvedEndpoint Properties

- Package: [Aspire.Hosting](/reference/api/csharp/aspire.hosting.md)
- Type: [ResolvedEndpoint](/reference/api/csharp/aspire.hosting/resolvedendpoint.md)
- Kind: `Properties`
- Members: `3`

Represents a resolved endpoint with computed target and exposed ports.

## Endpoint

- Name: `Endpoint`
- Modifiers: `get; init`
- Returns: [EndpointAnnotation](/reference/api/csharp/aspire.hosting/endpointannotation.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResolvedEndpoint.cs)

Gets the original endpoint annotation.

```csharp
public EndpointAnnotation Endpoint { get; init; }
```

## ExposedPort

- Name: `ExposedPort`
- Modifiers: `get; init`
- Returns: [ResolvedPort](/reference/api/csharp/aspire.hosting/resolvedport.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResolvedEndpoint.cs)

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.

```csharp
public ResolvedPort ExposedPort { get; init; }
```

## TargetPort

- Name: `TargetPort`
- Modifiers: `get; init`
- Returns: [ResolvedPort](/reference/api/csharp/aspire.hosting/resolvedport.md)
- Source: [GitHub](https://github.com/microsoft/aspire/blob/bd20f904cde09ecb9c9ae5116a6f13614bf2d7c2/src/Aspire.Hosting/ApplicationModel/ResolvedEndpoint.cs)

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.

```csharp
public ResolvedPort TargetPort { get; init; }
```
