71 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)
118private NodeEngineShutdownReason _shutdownReason; 224public NodeEngineShutdownReason Run(out Exception shutdownException) 236public NodeEngineShutdownReason Run(bool enableReuse, out Exception shutdownException) 248public NodeEngineShutdownReason Run(bool enableReuse, bool lowPriority, out Exception shutdownException) 263NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 447_shutdownReason = NodeEngineShutdownReason.Error; 454private NodeEngineShutdownReason HandleShutdown(out Exception exception) 463if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 476if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 483_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse); 526_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 574_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 854_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 855if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 862_shutdownReason = NodeEngineShutdownReason.BuildComplete; 876_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 (17)
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 (8)
3431NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3459RarNodeShutdownReason.Complete => NodeEngineShutdownReason.BuildComplete, 3460RarNodeShutdownReason.Error => NodeEngineShutdownReason.Error, 3461RarNodeShutdownReason.AlreadyRunning => NodeEngineShutdownReason.Error, 3462RarNodeShutdownReason.ConnectionTimedOut => NodeEngineShutdownReason.ConnectionFailed, 3501if (shutdownReason == NodeEngineShutdownReason.Error) 3507if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)