Skip to content
Docs Try Aspire

IResource.withUrlForEndpoint

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

Signature

method withUrlForEndpoint builder
Customizes the URL for a specific endpoint via callback
withUrlForEndpoint(endpointName: string, callback: (obj: ResourceUrlAnnotation) => void): IResource
endpointName string
callback (obj: ResourceUrlAnnotation) => void
IResource

Defined on

This method is defined on the following type: