20 references to LifecycleState
aspire (20)
DotNet\ProcessExecution.cs (20)
41
private int _lifecycleState = (int)
LifecycleState
.NotStarted;
97
var
previousState = (
LifecycleState
)Interlocked.CompareExchange(ref _lifecycleState, (int)
LifecycleState
.Starting, (int)
LifecycleState
.NotStarted);
98
if (previousState !=
LifecycleState
.NotStarted)
100
throw previousState ==
LifecycleState
.Disposed
125
Volatile.Write(ref _lifecycleState, (int)
LifecycleState
.Started);
129
Volatile.Write(ref _lifecycleState, (int)
LifecycleState
.Disposed);
482
switch ((
LifecycleState
)Volatile.Read(ref _lifecycleState))
484
case
LifecycleState
.NotStarted:
485
if (Interlocked.CompareExchange(ref _lifecycleState, (int)
LifecycleState
.Disposed, (int)
LifecycleState
.NotStarted) == (int)
LifecycleState
.NotStarted)
491
case
LifecycleState
.Starting:
497
case
LifecycleState
.Started:
498
if (Interlocked.CompareExchange(ref _lifecycleState, (int)
LifecycleState
.Disposed, (int)
LifecycleState
.Started) == (int)
LifecycleState
.Started)
505
case
LifecycleState
.Disposed: