Skip to content
Docs Try Aspire
Docs Try

withEndpointCallback

Method
📦 Aspire.Hosting v13.3.0
interface ContainerResource {
// ... omitted for brevity
withEndpointCallback(
endpointName: string,
callback: callback,
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

Applies to

This method applies to the following types: