Skip to content
Docs Try Aspire
Docs Try

IResource.onBeforeResourceStarted

Method
📦 Aspire.Hosting v13.4.0
interface IResource {
// ... omitted for brevity
onBeforeResourceStarted(callback: (arg: BeforeResourceStartedEvent) => Promise<void>): IResource;
}

Signature

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

Defined on

This method is defined on the following type: