67 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)
119
private
NodeEngineShutdownReason
_shutdownReason;
225
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
237
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
249
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
264
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
448
_shutdownReason =
NodeEngineShutdownReason
.Error;
455
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
464
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
477
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
484
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
527
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
579
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
859
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
860
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
867
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
881
_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 (13)
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 (4)
3415
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3470
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3476
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)