Skip to content
Docs Try Aspire
Docs Try

onBeforeResourceStarted

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

Signature

method onBeforeResourceStarted builder
Subscribes to the BeforeResourceStarted event
onBeforeResourceStarted(callback: (arg: BeforeResourceStartedEvent) => Promise<void>): IResource
callback (arg: BeforeResourceStartedEvent) => Promise<void>
IResource

Applies to

This method applies to the following types: