Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

ResourceUrlsEditor

Handle
📦 Aspire.Hosting v17.0.0

Provides an ATS-first editor for resource URLs within polyglot callbacks.

type ResourceUrlsEditor interface{}

Properties

propertyExecutionContextDistributedApplicationExecutionContextget
Gets the execution context associated with this editor.
ExecutionContext() DistributedApplicationExecutionContext

Methods

methodAdd
Adds a displayed URL.
Add(
url any,
options ...*AddOptions,
) error
urlanyThe URL to add, specified as a string or reference expression.
options...*AddOptionsOptional settings, described under Options.

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

DisplayText*stringThe optional display text to show for the URL.
error

Returns error.

Adds a displayed URL for a specific endpoint.
AddForEndpoint(
endpoint EndpointReference,
url any,
options ...*AddForEndpointOptions,
) error
endpointEndpointReferenceThe endpoint the URL is associated with.
urlanyThe URL to add, specified as a string or reference expression.
options...*AddForEndpointOptionsOptional settings, described under Options.

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

DisplayText*stringThe optional display text to show for the URL.
error

Returns error.