73 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
16
using NodeEngineShutdownReason = Microsoft.Build.Execution.
NodeEngineShutdownReason
;
393
NodeEngineShutdownReason
reason = inProcNode.Run(out e);
430
private void InProcNodeShutdown(
NodeEngineShutdownReason
reason, Exception e)
434
case
NodeEngineShutdownReason
.BuildComplete:
435
case
NodeEngineShutdownReason
.BuildCompleteReuse:
436
case
NodeEngineShutdownReason
.Error:
439
case
NodeEngineShutdownReason
.ConnectionFailed:
BackEnd\Node\INode.cs (3)
10
using NodeEngineShutdownReason = Microsoft.Build.Execution.
NodeEngineShutdownReason
;
18
internal delegate void NodeShutdownDelegate(
NodeEngineShutdownReason
reason, Exception e);
31
NodeEngineShutdownReason
Run(out Exception shutdownException);
BackEnd\Node\InProcNode.cs (12)
69
private
NodeEngineShutdownReason
_shutdownReason;
138
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
156
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
306
_shutdownReason =
NodeEngineShutdownReason
.Error;
313
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
327
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
329
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
337
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
367
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
425
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
527
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
122
private
NodeEngineShutdownReason
_shutdownReason;
241
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
253
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
265
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
280
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
464
_shutdownReason =
NodeEngineShutdownReason
.Error;
471
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
488
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
498
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
505
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
548
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
598
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
888
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
889
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
896
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
910
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
81
private
NodeEngineShutdownReason
_shutdownReason;
123
public
NodeEngineShutdownReason
Run(out Exception? shutdownException)
138
return
NodeEngineShutdownReason
.Error;
143
NodeEngineShutdownReason
shutdownReason = RunInternal(out shutdownException, handshake);
144
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
159
private
NodeEngineShutdownReason
RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake)
174
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
286
private
NodeEngineShutdownReason
HandleShutdown(out Exception? exception)
313
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
375
_shutdownReason = shouldReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
397
_shutdownReason =
NodeEngineShutdownReason
.Error;
412
_shutdownReason =
NodeEngineShutdownReason
.Error;
509
_shutdownReason = (_cancelRequested || command.ShutdownAfterBuild) ?
NodeEngineShutdownReason
.BuildComplete :
NodeEngineShutdownReason
.BuildCompleteReuse;
MSBuild (19)
OutOfProcTaskHostNode.cs (11)
126
private
NodeEngineShutdownReason
_shutdownReason;
897
public
NodeEngineShutdownReason
Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1)
920
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
1327
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
1423
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
1432
_shutdownReason =
NodeEngineShutdownReason
.BuildCompleteReuse;
1438
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
1491
private
NodeEngineShutdownReason
HandleShutdown()
1548
endpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
1615
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (8)
3456
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3483
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
3484
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
3485
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
3486
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
3531
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3537
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)