Skip to content
Docs Try Aspire

ResourceEvent Constructors

Class Constructors 1 member
Represents a change in the state of a resource.
Constructor(IResource, string, CustomResourceSnapshot) Section titled Constructor(IResource, string, CustomResourceSnapshot)
Represents a change in the state of a resource.
public class ResourceEvent
{
public ResourceEvent(
IResource resource,
string resourceId,
CustomResourceSnapshot snapshot)
{
// ...
}
}
resource IResource The resource associated with the event.
resourceId string The unique id of the resource.
snapshot CustomResourceSnapshot The snapshot of the resource state.