72 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
17
using NodeEngineShutdownReason = Microsoft.Build.Execution.
NodeEngineShutdownReason
;
407
NodeEngineShutdownReason
reason = inProcNode.Run(out e);
444
private void InProcNodeShutdown(
NodeEngineShutdownReason
reason, Exception e)
448
case
NodeEngineShutdownReason
.BuildComplete:
449
case
NodeEngineShutdownReason
.BuildCompleteReuse:
450
case
NodeEngineShutdownReason
.Error:
453
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;
869
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
870
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
877
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
891
_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;
337
_shutdownReason = shouldReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
359
_shutdownReason =
NodeEngineShutdownReason
.Error;
374
_shutdownReason =
NodeEngineShutdownReason
.Error;
451
_shutdownReason = _cancelRequested ?
NodeEngineShutdownReason
.BuildComplete :
NodeEngineShutdownReason
.BuildCompleteReuse;
MSBuild (18)
OutOfProcTaskHostNode.cs (10)
100
private
NodeEngineShutdownReason
_shutdownReason;
698
public
NodeEngineShutdownReason
Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1)
721
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
910
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
954
_shutdownReason =
NodeEngineShutdownReason
.BuildCompleteReuse;
959
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
967
private
NodeEngineShutdownReason
HandleShutdown()
998
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
1024
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (8)
2973
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3000
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
3001
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
3002
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
3003
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
3043
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3049
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)