Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

EndpointReference.getValueAsync

Method
📦 Aspire.Hosting v13.6.0
interface EndpointReference {
// ... omitted for brevity
getValueAsync(cancellationToken?: cancellationToken): string;
}

Signature

methodgetValueAsync
Gets the URL of the endpoint asynchronously. Waits for the endpoint to be allocated if necessary.
getValueAsync(cancellationToken?: cancellationToken): string
cancellationTokencancellationTokenoptional
string

Defined on

This method is defined on the following type: