Skip to content
Docs Try Aspire

withUrlForEndpoint

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withUrlForEndpoint(
endpointName: string,
callback: callback): 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

Applies to

This function is an extension method on the following types: