73 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)
367
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
425
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
527
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
123
private
NodeEngineShutdownReason
_shutdownReason;
242
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
254
public
NodeEngineShutdownReason
Run(bool enableReuse, out Exception shutdownException)
266
public
NodeEngineShutdownReason
Run(bool enableReuse, bool lowPriority, out Exception shutdownException)
281
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
465
_shutdownReason =
NodeEngineShutdownReason
.Error;
472
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
489
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
499
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
506
_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse);
549
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
599
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
891
_shutdownReason = buildComplete.PrepareForReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
892
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
899
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
913
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
81
private
NodeEngineShutdownReason
_shutdownReason;
123
public
NodeEngineShutdownReason
Run(out Exception? shutdownException)
138
return
NodeEngineShutdownReason
.Error;
143
NodeEngineShutdownReason
shutdownReason = RunInternal(out shutdownException, handshake);
144
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
159
private
NodeEngineShutdownReason
RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake)
174
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
286
private
NodeEngineShutdownReason
HandleShutdown(out Exception? exception)
313
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
375
_shutdownReason = shouldReuse ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
397
_shutdownReason =
NodeEngineShutdownReason
.Error;
412
_shutdownReason =
NodeEngineShutdownReason
.Error;
510
_shutdownReason = (_cancelRequested || command.ShutdownAfterBuild) ?
NodeEngineShutdownReason
.BuildComplete :
NodeEngineShutdownReason
.BuildCompleteReuse;
MSBuild (19)
OutOfProcTaskHostNode.cs (11)
125
private
NodeEngineShutdownReason
_shutdownReason;
896
public
NodeEngineShutdownReason
Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1)
919
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
1326
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
1422
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
1431
_shutdownReason =
NodeEngineShutdownReason
.BuildCompleteReuse;
1437
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
1490
private
NodeEngineShutdownReason
HandleShutdown()
1547
endpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
1614
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
XMake.cs (8)
3503
NodeEngineShutdownReason
shutdownReason =
NodeEngineShutdownReason
.Error;
3530
RarNodeShutdownReason.Complete =>
NodeEngineShutdownReason
.BuildComplete,
3531
RarNodeShutdownReason.Error =>
NodeEngineShutdownReason
.Error,
3532
RarNodeShutdownReason.AlreadyRunning =>
NodeEngineShutdownReason
.Error,
3533
RarNodeShutdownReason.ConnectionTimedOut =>
NodeEngineShutdownReason
.ConnectionFailed,
3578
if (shutdownReason ==
NodeEngineShutdownReason
.Error)
3584
if (shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)