Skip to content
DocsTry Aspire
DocsTry

withEndpointCallback

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
withEndpointCallback(
endpointName: string,
callback: callback,
createIfNotExists?: boolean): IResourceWithEndpoints;
}

Signature

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

Applies to

This method applies to the following types: