Skip to content
DocsTry Aspire
DocsTry

withHttpEndpointCallback

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

Signature

methodwithHttpEndpointCallbackbuilder
Updates an HTTP endpoint via callback
withHttpEndpointCallback(callback: (obj: EndpointUpdateContext) => Promise<void>, name?: string, createIfNotExists?: boolean): IResourceWithEndpoints
callback(obj: EndpointUpdateContext) => Promise<void>
namestringoptional
createIfNotExistsbooleanoptional= True
IResourceWithEndpoints

Applies to

This method applies to the following types: