71 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
16
using NodeEngineShutdownReason = Microsoft.Build.Execution.
NodeEngineShutdownReason
;
418
NodeEngineShutdownReason
reason = _inProcNode.Run(out e);
443
private void InProcNodeShutdown(
NodeEngineShutdownReason
reason, Exception e)
447
case
NodeEngineShutdownReason
.BuildComplete:
448
case
NodeEngineShutdownReason
.BuildCompleteReuse:
449
case
NodeEngineShutdownReason
.Error:
452
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;
133
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
151
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;
519
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
118
private
NodeEngineShutdownReason
_shutdownReason;
224
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
236
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
248
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
263
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
447
_shutdownReason =
NodeEngineShutdownReason
.Error;
454
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
463
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
476
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
483
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
526
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
574
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
854
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
855
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
862
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
876
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
65
private
NodeEngineShutdownReason
_shutdownReason;
99
public
NodeEngineShutdownReason
Run(out Exception? shutdownException)
113
return
NodeEngineShutdownReason
.Error;
118
NodeEngineShutdownReason
shutdownReason = RunInternal(out shutdownException, handshake);
119
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
134
private
NodeEngineShutdownReason
RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake)
149
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
254
private
NodeEngineShutdownReason
HandleShutdown(out Exception? exception)
281
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
327
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
349
_shutdownReason =
NodeEngineShutdownReason
.Error;
364
_shutdownReason =
NodeEngineShutdownReason
.Error;
441
_shutdownReason = _cancelRequested ?
NodeEngineShutdownReason
.BuildComplete :
NodeEngineShutdownReason
.BuildCompleteReuse;
MSBuild (17)
OutOfProcTaskHostNode.cs (9)
105
private
NodeEngineShutdownReason
_shutdownReason;
642
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
664
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
768
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
810
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
817
private
NodeEngineShutdownReason
HandleShutdown()
850
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
883
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (8)
3431
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3459
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
3460
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
3461
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
3462
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
3501
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3507
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)