Skip to content
Docs Try Aspire
Docs Try

withUrlForEndpointFactory

Method
📦 Aspire.Hosting v13.2.0
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) => Promise<ResourceUrlAnnotation>): IResourceWithEndpoints
endpointName string
callback (arg: EndpointReference) => Promise<ResourceUrlAnnotation>
IResourceWithEndpoints

Applies to

This method applies to the following types: