67 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
16using NodeEngineShutdownReason = Microsoft.Build.Execution.NodeEngineShutdownReason; 418NodeEngineShutdownReason reason = _inProcNode.Run(out e); 443private void InProcNodeShutdown(NodeEngineShutdownReason reason, Exception e) 447case NodeEngineShutdownReason.BuildComplete: 448case NodeEngineShutdownReason.BuildCompleteReuse: 449case NodeEngineShutdownReason.Error: 452case NodeEngineShutdownReason.ConnectionFailed:
BackEnd\Node\INode.cs (3)
10using NodeEngineShutdownReason = Microsoft.Build.Execution.NodeEngineShutdownReason; 18internal delegate void NodeShutdownDelegate(NodeEngineShutdownReason reason, Exception e); 31NodeEngineShutdownReason Run(out Exception shutdownException);
BackEnd\Node\InProcNode.cs (12)
69private NodeEngineShutdownReason _shutdownReason; 133public NodeEngineShutdownReason Run(out Exception shutdownException) 151NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 306_shutdownReason = NodeEngineShutdownReason.Error; 313private NodeEngineShutdownReason HandleShutdown(out Exception exception) 327if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 329_shutdownReason = NodeEngineShutdownReason.BuildComplete; 337if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 363_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 421_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 519_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
119private NodeEngineShutdownReason _shutdownReason; 225public NodeEngineShutdownReason Run(out Exception shutdownException) 237public NodeEngineShutdownReason Run(bool enableReuse, out Exception shutdownException) 249public NodeEngineShutdownReason Run(bool enableReuse, bool lowPriority, out Exception shutdownException) 264NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 448_shutdownReason = NodeEngineShutdownReason.Error; 455private NodeEngineShutdownReason HandleShutdown(out Exception exception) 464if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 477if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 484_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse); 527_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 579_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 859_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 860if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 867_shutdownReason = NodeEngineShutdownReason.BuildComplete; 881_shutdownReason = NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
65private NodeEngineShutdownReason _shutdownReason; 99public NodeEngineShutdownReason Run(out Exception? shutdownException) 113return NodeEngineShutdownReason.Error; 118NodeEngineShutdownReason shutdownReason = RunInternal(out shutdownException, handshake); 119if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 134private NodeEngineShutdownReason RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake) 149NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 254private NodeEngineShutdownReason HandleShutdown(out Exception? exception) 281_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 327_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 349_shutdownReason = NodeEngineShutdownReason.Error; 364_shutdownReason = NodeEngineShutdownReason.Error; 441_shutdownReason = _cancelRequested ? NodeEngineShutdownReason.BuildComplete : NodeEngineShutdownReason.BuildCompleteReuse;
MSBuild (13)
OutOfProcTaskHostNode.cs (9)
105private NodeEngineShutdownReason _shutdownReason; 642public NodeEngineShutdownReason Run(out Exception shutdownException) 664NodeEngineShutdownReason shutdownReason = HandleShutdown(); 768_shutdownReason = NodeEngineShutdownReason.BuildComplete; 810_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 817private NodeEngineShutdownReason HandleShutdown() 850_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested)); 883_shutdownReason = NodeEngineShutdownReason.ConnectionFailed;
XMake.cs (4)
3415NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3470if (shutdownReason == NodeEngineShutdownReason.Error) 3476if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)