Skip to content
Docs Try Aspire

ResourceStoppedEvent Constructors

Class Constructors 1 member
This event is raised after a resource has stopped.
Constructor(IResource, IServiceProvider, ResourceEvent) Section titled Constructor(IResource, IServiceProvider, ResourceEvent)
This event is raised after a resource has stopped.
public class ResourceStoppedEvent
{
public ResourceStoppedEvent(
IResource resource,
IServiceProvider services,
ResourceEvent resourceEvent)
{
// ...
}
}
resource IResource The resource that has stopped.
services IServiceProvider The IServiceProvider for the app host.
resourceEvent ResourceEvent The ResourceStoppedEvent.ResourceEvent containing the current state information.
This event allows for cleanup or unregistration logic when a resource is stopped by an orchestrator.