Skip to content
Docs Try Aspire
Docs Try

IResource.withUrlForEndpoint

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

Signature

method withUrlForEndpoint builder
Registers a callback to update the URL displayed for the endpoint with the specified name.
withUrlForEndpoint(endpointName: string, callback: (obj: ResourceUrlAnnotation) => Promise<void>): IResource
endpointName string
callback (obj: ResourceUrlAnnotation) => Promise<void>
IResource

Defined on

This method is defined on the following type: