Skip to content
Docs Try Aspire

withUrlForEndpointFactory

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface ContainerResource {
// ... omitted for brevity
withUrlForEndpointFactory(
endpointName: string,
callback: callback): IResourceWithEndpoints;
}

Signature

method withUrlForEndpointFactory builder
Adds a URL for a specific endpoint via factory callback
withUrlForEndpointFactory(endpointName: string, callback: (arg: EndpointReference) => ResourceUrlAnnotation): IResourceWithEndpoints
endpointName string
callback (arg: EndpointReference) => ResourceUrlAnnotation
IResourceWithEndpoints

Applies to

This function is an extension method on the following types: