72 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)
363
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
421
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
523
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
122
private
NodeEngineShutdownReason
_shutdownReason;
228
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
240
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
252
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
267
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
451
_shutdownReason =
NodeEngineShutdownReason
.Error;
458
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
475
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
485
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
492
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
535
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
585
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
875
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
876
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
883
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
897
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
82
private
NodeEngineShutdownReason
_shutdownReason;
124
public
NodeEngineShutdownReason
Run(out Exception? shutdownException)
139
return
NodeEngineShutdownReason
.Error;
144
NodeEngineShutdownReason
shutdownReason = RunInternal(out shutdownException, handshake);
145
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
160
private
NodeEngineShutdownReason
RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake)
175
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
287
private
NodeEngineShutdownReason
HandleShutdown(out Exception? exception)
314
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
376
_shutdownReason = shouldReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
398
_shutdownReason =
NodeEngineShutdownReason
.Error;
413
_shutdownReason =
NodeEngineShutdownReason
.Error;
510
_shutdownReason = (_cancelRequested || command.ShutdownAfterBuild) ?
NodeEngineShutdownReason
.BuildComplete :
NodeEngineShutdownReason
.BuildCompleteReuse;
MSBuild (18)
OutOfProcTaskHostNode.cs (10)
125
private
NodeEngineShutdownReason
_shutdownReason;
867
public
NodeEngineShutdownReason
Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1)
890
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
1281
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
1335
_shutdownReason =
NodeEngineShutdownReason
.BuildCompleteReuse;
1340
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
1348
private
NodeEngineShutdownReason
HandleShutdown()
1386
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
1412
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (8)
3406
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3433
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
3434
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
3435
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
3436
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
3481
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3487
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)