IDistributedApplicationLifecycleHook Interface
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |