Skip to content
DocsTry Aspire
DocsTry

IResourceWithEndpoints.withHttpEndpointCallback

Method
📦 Aspire.Hosting v13.4.0
interface IResourceWithEndpoints {
// ... omitted for brevity
withHttpEndpointCallback(callback: (obj: EndpointUpdateContext) => Promise<void>, 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

Defined on

This method is defined on the following type: