Skip to content

Add EndpointProperty.HostAndPort #7597

@afscrome

Description

@afscrome

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem? Please describe the problem.

On several occasions, I've found myself wanting to get an endpoint reference in <Host>:<Port> format - particularly for low level tcp / udp type endpoints. You can deal with this today by something like:

ReferenceExpression.Create($"{endpoint.Property(EndpointProperty.Host)}:{endpoint.Property(EndpointProperty.Port)}");

However this seems like a common enough format it would be nice to be able to do it natively.

Describe the solution you'd like

endpoint.Property(EndpointProperty.HostAndPort)

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-app-modelIssues pertaining to the APIs in Aspire.Hosting, e.g. DistributedApplication

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions