Skip to content
Docs Try Aspire

IResourceWithEndpoints.withUrlForEndpointFactory

Method
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
interface IResourceWithEndpoints {
// ... omitted for brevity
withUrlForEndpointFactory(endpointName: string, callback: (arg: EndpointReference) => ResourceUrlAnnotation): 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

Defined on

This method is defined on the following type: