Share via


DistributedApplicationResourceEventSubscription Class

Definition

Represents a subscription to an event that is published during the lifecycle of the AppHost for a specific resource.

public class DistributedApplicationResourceEventSubscription : Aspire.Hosting.Eventing.DistributedApplicationEventSubscription
type DistributedApplicationResourceEventSubscription = class
    inherit DistributedApplicationEventSubscription
Public Class DistributedApplicationResourceEventSubscription
Inherits DistributedApplicationEventSubscription
Inheritance
DistributedApplicationResourceEventSubscription

Constructors

DistributedApplicationResourceEventSubscription(IResource, Func<IDistributedApplicationResourceEvent,CancellationToken,Task>)

Represents a subscription to an event that is published during the lifecycle of the AppHost for a specific resource.

Properties

Callback

The callback to be executed when the event is published.

(Inherited from DistributedApplicationEventSubscription)
Resource

Resource associated with this subscription.

Applies to