DistributedApplicationResourceEventSubscription Constructors
Class Constructors 1 member
Represents a subscription to an event that is published during the lifecycle of the AppHost for a specific resource.
Constructor(IResource?, Func<IDistributedApplicationResourceEvent, CancellationToken, Task>) Section titled Constructor(IResource?, Func<IDistributedApplicationResourceEvent, CancellationToken, Task>) Represents a subscription to an event that is published during the lifecycle of the AppHost for a specific resource.
public class DistributedApplicationResourceEventSubscription{ public DistributedApplicationResourceEventSubscription( IResource? resource, Func<IDistributedApplicationResourceEvent, CancellationToken, Task> callback) { // ... }}Parameters
resource IResource? callback Func<IDistributedApplicationResourceEvent, CancellationToken, Task>