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