Skip to content
Docs Try Aspire

onBeforeResourceStarted

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

Signature

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

Applies to

This function is an extension method on the following types: