Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

EndpointReference.GetValueAsync

Method
📦 Aspire.Hosting v17.0.0
type EndpointReference interface {
// ... omitted for brevity
GetValueAsync(options ...*GetValueAsyncOptions) (*string, error)
}

Signature

methodGetValueAsync
Gets the URL of the endpoint asynchronously. Waits for the endpoint to be allocated if necessary.
GetValueAsync(options ...*GetValueAsyncOptions) (*string, error)
options...*GetValueAsyncOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*GetValueAsyncOptions argument.

CancellationToken*CancellationTokenThe cancellation token.
(*string, error)

The URL of the endpoint.

Returns (*string, error).

Defined on

This method is defined on the following type: