Skip to content
DocsTry Aspire
DocsTry

withUrlForEndpoint

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withUrlForEndpoint(
endpointName: string,
callback: callback): 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
endpointNamestring
callback(obj: ResourceUrlAnnotation) => Promise<void>
IResource

Applies to

This method applies to the following types: