Skip to content
DocsTry Aspire
DocsTry

onResourceReady

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
onResourceReady(callback: callback): IResource;
}

Signature

methodonResourceReadybuilder
Subscribes to the ResourceReady event.
onResourceReady(callback: (arg: ResourceReadyEvent) => Promise<void>): IResource
callback(arg: ResourceReadyEvent) => Promise<void>
IResource

Applies to

This method applies to the following types: