72 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
16
using NodeEngineShutdownReason = Microsoft.Build.Execution.
NodeEngineShutdownReason
;
393
NodeEngineShutdownReason
reason = inProcNode.Run(out e);
430
private void InProcNodeShutdown(
NodeEngineShutdownReason
reason, Exception e)
434
case
NodeEngineShutdownReason
.BuildComplete:
435
case
NodeEngineShutdownReason
.BuildCompleteReuse:
436
case
NodeEngineShutdownReason
.Error:
439
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);
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;
523
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
122
private
NodeEngineShutdownReason
_shutdownReason;
228
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
240
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
252
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
267
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
451
_shutdownReason =
NodeEngineShutdownReason
.Error;
458
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
475
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
485
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
492
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
535
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
585
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
873
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
874
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
881
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
895
_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;
468
_shutdownReason = (_cancelRequested || command.ShutdownAfterBuild) ?
NodeEngineShutdownReason
.BuildComplete :
NodeEngineShutdownReason
.BuildCompleteReuse;
MSBuild (18)
OutOfProcTaskHostNode.cs (10)
124
private
NodeEngineShutdownReason
_shutdownReason;
866
public
NodeEngineShutdownReason
Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1)
889
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
1280
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
1334
_shutdownReason =
NodeEngineShutdownReason
.BuildCompleteReuse;
1339
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
1347
private
NodeEngineShutdownReason
HandleShutdown()
1385
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
1411
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (8)
3191
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3218
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
3219
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
3220
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
3221
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
3261
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3267
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)