Share via


IDistributedApplicationLifecycleHook Interface

Definition

Caution

Use IDistributedApplicationEventingSubscriber instead.

Defines an interface for hooks that are executed during the lifecycle of a distributed application.

[System.Obsolete("Use IDistributedApplicationEventingSubscriber instead.")]
public interface IDistributedApplicationLifecycleHook
public interface IDistributedApplicationLifecycleHook
[<System.Obsolete("Use IDistributedApplicationEventingSubscriber instead.")>]
type IDistributedApplicationLifecycleHook = interface
type IDistributedApplicationLifecycleHook = interface
Public Interface IDistributedApplicationLifecycleHook
Attributes

Methods

AfterEndpointsAllocatedAsync(DistributedApplicationModel, CancellationToken)

Executes after the orchestrator allocates endpoints for resources in the application model.

AfterResourcesCreatedAsync(DistributedApplicationModel, CancellationToken)

Executes after the orchestrator has created the resources in the application model.

BeforeStartAsync(DistributedApplicationModel, CancellationToken)

Executes before the distributed application starts.

Applies to