72 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
17
using NodeEngineShutdownReason = Microsoft.Build.Execution.
NodeEngineShutdownReason
;
395
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;
138
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
156
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
311
_shutdownReason =
NodeEngineShutdownReason
.Error;
318
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
332
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
334
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
342
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
368
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
426
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
528
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
121
private
NodeEngineShutdownReason
_shutdownReason;
227
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
239
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
251
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
266
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
450
_shutdownReason =
NodeEngineShutdownReason
.Error;
457
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
474
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
484
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
491
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
534
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
584
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
868
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
869
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
876
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
890
_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 (18)
OutOfProcTaskHostNode.cs (10)
105
private
NodeEngineShutdownReason
_shutdownReason;
647
public
NodeEngineShutdownReason
Run(out Exception shutdownException, bool nodeReuse = false)
670
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
774
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
818
_shutdownReason =
NodeEngineShutdownReason
.BuildCompleteReuse;
823
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
831
private
NodeEngineShutdownReason
HandleShutdown()
864
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
897
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (8)
3473
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3500
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
3501
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
3502
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
3503
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
3542
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3548
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)