IResource.withUrlForEndpoint

Method
📦 Aspire.Hosting v17.0.0
interface IResource {
// ... omitted for brevity
withUrlForEndpoint(endpointName: string, callback: (obj: ResourceUrlAnnotation) => Promise<void>): IResource;
}

Signature

methodwithUrlForEndpointbuilder
Registers a callback to update the URL displayed for the endpoint with the specified name.
withUrlForEndpoint(endpointName: string, callback: (obj: ResourceUrlAnnotation) => Promise<void>): IResource
endpointNamestringThe name of the endpoint to customize the URL for.
callback(obj: ResourceUrlAnnotation) => Promise<void>The callback that will customize the URL.
IResource

Defined on

This method is defined on the following type: