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)
60
private
NodeEngineShutdownReason
_shutdownReason;
94
public
NodeEngineShutdownReason
Run(out Exception? shutdownException)
108
return
NodeEngineShutdownReason
.Error;
113
NodeEngineShutdownReason
shutdownReason = RunInternal(out shutdownException, handshake);
114
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
129
private
NodeEngineShutdownReason
RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake)
144
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
249
private
NodeEngineShutdownReason
HandleShutdown(out Exception? exception)
276
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
322
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
344
_shutdownReason =
NodeEngineShutdownReason
.Error;
359
_shutdownReason =
NodeEngineShutdownReason
.Error;
436
_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)
2841
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
2868
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
2869
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
2870
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
2871
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
2910
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
2916
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)