DistributedApplicationResourceEventSubscription Constructors
ClassConstructors1 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
resourceIcallbackFunc<IDistributedApplicationResourceEvent, CancellationToken, Task>