Skip to content
DocsTry Aspire
DocsTry

ResourceEvent Constructors

ClassConstructors1 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)
{
// ...
}
}
resourceIResourceThe resource associated with the event.
resourceIdstringThe unique id of the resource.
snapshotCustomResourceSnapshotThe snapshot of the resource state.