IResource.onBeforeResourceStarted

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

Signature

methodonBeforeResourceStartedbuilder
Subscribes to the BeforeResourceStarted event.
onBeforeResourceStarted(callback: (arg: BeforeResourceStartedEvent) => Promise<void>): IResource
callback(arg: BeforeResourceStartedEvent) => Promise<void>The callback to invoke when the event fires.
IResource

Defined on

This method is defined on the following type: