Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

GetEndpoint

Method
📦 Aspire.Hosting v17.0.0
func (ResourceWithEndpoints) GetEndpoint(name string) EndpointReference

Signature

methodGetEndpoint
Gets an endpoint reference
GetEndpoint(name string) EndpointReference
namestringThe name of the endpoint.
EndpointReference

An EndpointReference that can be used to resolve the address of the endpoint after resource allocation has occurred.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types: