IDistributedApplicationLifecycleHook
Interface net10.0
Defines an interface for hooks that are executed during the lifecycle of a distributed application.
namespace Aspire.Hosting.Lifecycle;
public interface IDistributedApplicationLifecycleHook{ // ...}Methods3
Section titled MethodsAfterEndpointsAllocatedAsync(DistributedApplicationModel, CancellationToken)virtualTask Executes after the orchestrator allocates endpoints for resources in the application model.
AfterResourcesCreatedAsync(DistributedApplicationModel, CancellationToken)virtualTask Executes after the orchestrator has created the resources in the application model.
BeforeStartAsync(DistributedApplicationModel, CancellationToken)virtualTask Executes before the distributed application starts.