10 references to LifecycleCommandPhases
Aspire.Hosting.Native.Core (6)
Runtime\DeclarativeApplication.cs (6)
282if (lifecycle.SingleOrDefault(command => command.Phase == LifecycleCommandPhases.Retire) is { } retirementCommand) 286if (lifecycle.SingleOrDefault(command => command.Phase == LifecycleCommandPhases.Health) is { } health) 294await Execute(LifecycleCommandPhases.Ready, cancellationToken).ConfigureAwait(false); 314if (lifecycle.SingleOrDefault(command => command.Phase == LifecycleCommandPhases.Retire) is not null) 339if (lifecycle.SingleOrDefault(command => command.Phase == LifecycleCommandPhases.Retire) is { } retirementCommand && 347await Execute(LifecycleCommandPhases.Initialize, token).ConfigureAwait(false);
Aspire.Hosting.Native.Server (4)
Api\DeclarativeWorkloadApi.cs (4)
212if (phase is not (LifecycleCommandPhases.Initialize or LifecycleCommandPhases.Health or LifecycleCommandPhases.Ready or LifecycleCommandPhases.Retire))