ResourceUrlsEditor.AddForEndpoint

Method
📦 Aspire.Hosting v17.0.0
type ResourceUrlsEditor interface {
// ... omitted for brevity
AddForEndpoint(
endpoint EndpointReference,
url any,
options ...*AddForEndpointOptions,
) error
}

Signature

methodAddForEndpoint
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.

Defined on

This method is defined on the following type: