共用方式為


ResourceEvent(IResource, String, CustomResourceSnapshot) Constructor

Definition

Represents a change in the state of a resource.

public ResourceEvent (Aspire.Hosting.ApplicationModel.IResource resource, string resourceId, Aspire.Hosting.ApplicationModel.CustomResourceSnapshot snapshot);
new Aspire.Hosting.ApplicationModel.ResourceEvent : Aspire.Hosting.ApplicationModel.IResource * string * Aspire.Hosting.ApplicationModel.CustomResourceSnapshot -> Aspire.Hosting.ApplicationModel.ResourceEvent
Public Sub New (resource As IResource, resourceId As String, snapshot As CustomResourceSnapshot)

Parameters

resource
IResource

The resource associated with the event.

resourceId
String

The unique id of the resource.

snapshot
CustomResourceSnapshot

The snapshot of the resource state.

Applies to