Skip to content
Docs Try Aspire
Docs Try

withHttpEndpointCallback

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

Signature

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

Applies to

This method applies to the following types: