73 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
16using NodeEngineShutdownReason = Microsoft.Build.Execution.NodeEngineShutdownReason; 393NodeEngineShutdownReason reason = inProcNode.Run(out e); 430private void InProcNodeShutdown(NodeEngineShutdownReason reason, Exception e) 434case NodeEngineShutdownReason.BuildComplete: 435case NodeEngineShutdownReason.BuildCompleteReuse: 436case NodeEngineShutdownReason.Error: 439case 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; 138public NodeEngineShutdownReason Run(out Exception shutdownException) 156NodeEngineShutdownReason 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) 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)
122private NodeEngineShutdownReason _shutdownReason; 241public NodeEngineShutdownReason Run(out Exception shutdownException) 253public NodeEngineShutdownReason Run(bool enableReuse, out Exception shutdownException) 265public NodeEngineShutdownReason Run(bool enableReuse, bool lowPriority, out Exception shutdownException) 280NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 464_shutdownReason = NodeEngineShutdownReason.Error; 471private NodeEngineShutdownReason HandleShutdown(out Exception exception) 488if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 498if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 505_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse); 548_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 598_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 888_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 889if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 896_shutdownReason = NodeEngineShutdownReason.BuildComplete; 910_shutdownReason = NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
81private NodeEngineShutdownReason _shutdownReason; 123public NodeEngineShutdownReason Run(out Exception? shutdownException) 138return NodeEngineShutdownReason.Error; 143NodeEngineShutdownReason shutdownReason = RunInternal(out shutdownException, handshake); 144if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 159private NodeEngineShutdownReason RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake) 174NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 286private NodeEngineShutdownReason HandleShutdown(out Exception? exception) 313_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 375_shutdownReason = shouldReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 397_shutdownReason = NodeEngineShutdownReason.Error; 412_shutdownReason = NodeEngineShutdownReason.Error; 509_shutdownReason = (_cancelRequested || command.ShutdownAfterBuild) ? NodeEngineShutdownReason.BuildComplete : NodeEngineShutdownReason.BuildCompleteReuse;
MSBuild (19)
OutOfProcTaskHostNode.cs (11)
126private NodeEngineShutdownReason _shutdownReason; 897public NodeEngineShutdownReason Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1) 920NodeEngineShutdownReason shutdownReason = HandleShutdown(); 1327_shutdownReason = NodeEngineShutdownReason.BuildComplete; 1423_shutdownReason = NodeEngineShutdownReason.BuildComplete; 1432_shutdownReason = NodeEngineShutdownReason.BuildCompleteReuse; 1438_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 1491private NodeEngineShutdownReason HandleShutdown() 1548endpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested)); 1615_shutdownReason = NodeEngineShutdownReason.ConnectionFailed;
XMake.cs (8)
3456NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3483RarNodeShutdownReason.Complete => NodeEngineShutdownReason.BuildComplete, 3484RarNodeShutdownReason.Error => NodeEngineShutdownReason.Error, 3485RarNodeShutdownReason.AlreadyRunning => NodeEngineShutdownReason.Error, 3486RarNodeShutdownReason.ConnectionTimedOut => NodeEngineShutdownReason.ConnectionFailed, 3531if (shutdownReason == NodeEngineShutdownReason.Error) 3537if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)