Skip to content
Docs Try Aspire
Docs Try

IResourceWithEndpoints.withEndpointCallback

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEndpoints {
// ... omitted for brevity
withEndpointCallback(endpointName: string, callback: (obj: EndpointUpdateContext) => Promise<void>, createIfNotExists?: boolean): IResourceWithEndpoints;
}

Signature

method withEndpointCallback builder
Updates a named endpoint via callback
withEndpointCallback(endpointName: string, callback: (obj: EndpointUpdateContext) => Promise<void>, createIfNotExists?: boolean): IResourceWithEndpoints
endpointName string
callback (obj: EndpointUpdateContext) => Promise<void>
createIfNotExists boolean optional = True
IResourceWithEndpoints

Defined on

This method is defined on the following type: