67 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
15
using NodeEngineShutdownReason = Microsoft.Build.Execution.
NodeEngineShutdownReason
;
407
NodeEngineShutdownReason
reason = _inProcNode.Run(out e);
432
private void InProcNodeShutdown(
NodeEngineShutdownReason
reason, Exception e)
436
case
NodeEngineShutdownReason
.BuildComplete:
437
case
NodeEngineShutdownReason
.BuildCompleteReuse:
438
case
NodeEngineShutdownReason
.Error:
441
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);
296
_shutdownReason =
NodeEngineShutdownReason
.Error;
303
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
317
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
319
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
327
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
353
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
411
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
509
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
117
private
NodeEngineShutdownReason
_shutdownReason;
223
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
235
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
247
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
262
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
436
_shutdownReason =
NodeEngineShutdownReason
.Error;
443
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
452
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
465
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
472
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
515
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
567
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
847
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
848
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
854
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
868
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
67
private
NodeEngineShutdownReason
_shutdownReason;
101
public
NodeEngineShutdownReason
Run(out Exception? shutdownException)
115
return
NodeEngineShutdownReason
.Error;
120
NodeEngineShutdownReason
shutdownReason = RunInternal(out shutdownException, handshake);
121
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
136
private
NodeEngineShutdownReason
RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake)
151
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
246
private
NodeEngineShutdownReason
HandleShutdown(out Exception? exception)
273
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
319
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
341
_shutdownReason =
NodeEngineShutdownReason
.Error;
356
_shutdownReason =
NodeEngineShutdownReason
.Error;
433
_shutdownReason = _cancelRequested ?
NodeEngineShutdownReason
.BuildComplete :
NodeEngineShutdownReason
.BuildCompleteReuse;
MSBuild (13)
OutOfProcTaskHostNode.cs (9)
106
private
NodeEngineShutdownReason
_shutdownReason;
633
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
655
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
759
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
801
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
808
private
NodeEngineShutdownReason
HandleShutdown()
840
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
873
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (4)
3403
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3458
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3464
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)