Skip to content
Docs Try Aspire

IResource.onResourceStopped

Method
📦 Aspire.Hosting v13.2.0
interface IResource {
// ... omitted for brevity
onResourceStopped(callback: (arg: ResourceStoppedEvent) => void): IResource;
}

Signature

method onResourceStopped builder
Subscribes to the ResourceStopped event
onResourceStopped(callback: (arg: ResourceStoppedEvent) => void): IResource
callback (arg: ResourceStoppedEvent) => void
IResource

Defined on

This method is defined on the following type: