72 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
17using NodeEngineShutdownReason = Microsoft.Build.Execution.NodeEngineShutdownReason; 395NodeEngineShutdownReason 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; 138public NodeEngineShutdownReason Run(out Exception shutdownException) 156NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 311_shutdownReason = NodeEngineShutdownReason.Error; 318private NodeEngineShutdownReason HandleShutdown(out Exception exception) 332if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 334_shutdownReason = NodeEngineShutdownReason.BuildComplete; 342if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 368_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 426_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 528_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
121private NodeEngineShutdownReason _shutdownReason; 227public NodeEngineShutdownReason Run(out Exception shutdownException) 239public NodeEngineShutdownReason Run(bool enableReuse, out Exception shutdownException) 251public NodeEngineShutdownReason Run(bool enableReuse, bool lowPriority, out Exception shutdownException) 266NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 450_shutdownReason = NodeEngineShutdownReason.Error; 457private NodeEngineShutdownReason HandleShutdown(out Exception exception) 474if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 484if (_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; 868_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 869if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 876_shutdownReason = NodeEngineShutdownReason.BuildComplete; 890_shutdownReason = NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
60private NodeEngineShutdownReason _shutdownReason; 94public NodeEngineShutdownReason Run(out Exception? shutdownException) 108return NodeEngineShutdownReason.Error; 113NodeEngineShutdownReason shutdownReason = RunInternal(out shutdownException, handshake); 114if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 129private NodeEngineShutdownReason RunInternal(out Exception? shutdownException, ServerNodeHandshake handshake) 144NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 249private NodeEngineShutdownReason HandleShutdown(out Exception? exception) 276_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 322_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 344_shutdownReason = NodeEngineShutdownReason.Error; 359_shutdownReason = NodeEngineShutdownReason.Error; 436_shutdownReason = _cancelRequested ? NodeEngineShutdownReason.BuildComplete : NodeEngineShutdownReason.BuildCompleteReuse;
MSBuild (18)
OutOfProcTaskHostNode.cs (10)
105private NodeEngineShutdownReason _shutdownReason; 647public NodeEngineShutdownReason Run(out Exception shutdownException, bool nodeReuse = false) 670NodeEngineShutdownReason shutdownReason = HandleShutdown(); 774_shutdownReason = NodeEngineShutdownReason.BuildComplete; 818_shutdownReason = NodeEngineShutdownReason.BuildCompleteReuse; 823_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 831private NodeEngineShutdownReason HandleShutdown() 864_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested)); 897_shutdownReason = NodeEngineShutdownReason.ConnectionFailed;
XMake.cs (8)
2841NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 2868RarNodeShutdownReason.Complete => NodeEngineShutdownReason.BuildComplete, 2869RarNodeShutdownReason.Error => NodeEngineShutdownReason.Error, 2870RarNodeShutdownReason.AlreadyRunning => NodeEngineShutdownReason.Error, 2871RarNodeShutdownReason.ConnectionTimedOut => NodeEngineShutdownReason.ConnectionFailed, 2910if (shutdownReason == NodeEngineShutdownReason.Error) 2916if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)