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)
70
private
NodeEngineShutdownReason
_shutdownReason;
139
public
NodeEngineShutdownReason
Run(out Exception shutdownException)
157
NodeEngineShutdownReason
shutdownReason = HandleShutdown(out shutdownException);
312
_shutdownReason =
NodeEngineShutdownReason
.Error;
319
private
NodeEngineShutdownReason
HandleShutdown(out Exception exception)
333
if (_shutdownReason ==
NodeEngineShutdownReason
.BuildCompleteReuse)
335
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
343
if (_shutdownReason !=
NodeEngineShutdownReason
.BuildCompleteReuse)
369
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception));
427
_shutdownReason =
NodeEngineShutdownReason
.ConnectionFailed;
529
_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;
691
public
NodeEngineShutdownReason
Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1)
714
NodeEngineShutdownReason
shutdownReason = HandleShutdown();
903
_shutdownReason =
NodeEngineShutdownReason
.BuildComplete;
947
_shutdownReason =
NodeEngineShutdownReason
.BuildCompleteReuse;
952
_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ?
NodeEngineShutdownReason
.BuildCompleteReuse :
NodeEngineShutdownReason
.BuildComplete;
960
private
NodeEngineShutdownReason
HandleShutdown()
991
_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason ==
NodeEngineShutdownReason
.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested));
1017
_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)