8 writes to _state
dotnet-aot (8)
parent\dotnet\Commands\Test\MTP\InvocationLifetimeCoordinator.cs (8)
236
_state
= State.Accepted;
259
_state
= State.SetupSucceeded;
282
_state
= State.TestsCompleted;
403
_state
= State.CleanupRequested;
408
_state
= State.FallenBack;
453
_state
= State.Failed;
569
_state
= State.FallenBack;
593
_state
= State.Failed;
21 references to _state
dotnet-aot (21)
parent\dotnet\Commands\Test\MTP\InvocationLifetimeCoordinator.cs (21)
120
return
_state
is State.Accepted or State.SetupSucceeded or State.TestsCompleted or State.CleanupRequested;
135
return
_state
== State.Failed || _siblingHandshakeRejected;
168
if (
_state
is State.Pending or State.Accepted && _readinessTimer is null)
188
if (
_state
!= State.Pending)
192
Logger.LogTrace($"Ignoring an invocation lifetime handshake from '{_ownerName}' in state '{
_state
}'.");
246
if (
_state
!= State.Accepted)
280
if (
_state
== State.SetupSucceeded)
284
else if (!(
_state
== State.Failed && _ownerControlLost && _setupSucceeded))
306
if (
_state
is not (State.Accepted or State.SetupSucceeded or State.TestsCompleted))
308
Logger.LogTrace($"The invocation lifetime control connection of '{_ownerName}' closed in state '{
_state
}'.");
337
if (
_state
!= State.CleanupRequested)
353
switch (
_state
)
400
requestCleanup =
_state
== State.TestsCompleted && owner is not null;
405
else if (
_state
== State.Pending)
412
_siblingLaunch.TrySetResult(
_state
== State.FallenBack ? InvocationLifetimeSiblingLaunch.Independent : InvocationLifetimeSiblingLaunch.Skip);
450
failed = cleanupFailed ||
_state
== State.Failed || _siblingHandshakeRejected;
545
if (
_state
== State.Pending)
554
else if (
_state
== State.Accepted)
575
if (
_state
is State.Pending or State.FallenBack or State.Failed)
578
Logger.LogTrace($"Ignoring '{messageName}' from '{_ownerName}' in state '{
_state
}'.");
587
if (
_state
== State.Failed)