67 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
15using NodeEngineShutdownReason = Microsoft.Build.Execution.NodeEngineShutdownReason; 407NodeEngineShutdownReason reason = _inProcNode.Run(out e); 432private void InProcNodeShutdown(NodeEngineShutdownReason reason, Exception e) 436case NodeEngineShutdownReason.BuildComplete: 437case NodeEngineShutdownReason.BuildCompleteReuse: 438case NodeEngineShutdownReason.Error: 441case 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); 296_shutdownReason = NodeEngineShutdownReason.Error; 303private NodeEngineShutdownReason HandleShutdown(out Exception exception) 317if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 319_shutdownReason = NodeEngineShutdownReason.BuildComplete; 327if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 353_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 411_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 509_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
117private NodeEngineShutdownReason _shutdownReason; 223public NodeEngineShutdownReason Run(out Exception shutdownException) 235public NodeEngineShutdownReason Run(bool enableReuse, out Exception shutdownException) 247public NodeEngineShutdownReason Run(bool enableReuse, bool lowPriority, out Exception shutdownException) 262NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 436_shutdownReason = NodeEngineShutdownReason.Error; 443private NodeEngineShutdownReason HandleShutdown(out Exception exception) 452if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 465if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 472_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse); 515_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 567_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 847_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 848if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 854_shutdownReason = NodeEngineShutdownReason.BuildComplete; 868_shutdownReason = NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
67private NodeEngineShutdownReason _shutdownReason; 101public NodeEngineShutdownReason Run(out Exception? shutdownException) 115return NodeEngineShutdownReason.Error; 120NodeEngineShutdownReason shutdownReason = RunInternal(out shutdownException, handshake); 121if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 136private NodeEngineShutdownReason RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake) 151NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 246private NodeEngineShutdownReason HandleShutdown(out Exception? exception) 273_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 319_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 341_shutdownReason = NodeEngineShutdownReason.Error; 356_shutdownReason = NodeEngineShutdownReason.Error; 433_shutdownReason = _cancelRequested ? NodeEngineShutdownReason.BuildComplete : NodeEngineShutdownReason.BuildCompleteReuse;
MSBuild (13)
OutOfProcTaskHostNode.cs (9)
106private NodeEngineShutdownReason _shutdownReason; 633public NodeEngineShutdownReason Run(out Exception shutdownException) 655NodeEngineShutdownReason shutdownReason = HandleShutdown(); 759_shutdownReason = NodeEngineShutdownReason.BuildComplete; 801_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 808private NodeEngineShutdownReason HandleShutdown() 840_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested)); 873_shutdownReason = NodeEngineShutdownReason.ConnectionFailed;
XMake.cs (4)
3403NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3458if (shutdownReason == NodeEngineShutdownReason.Error) 3464if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)