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)
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 (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)
3473NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3500RarNodeShutdownReason.Complete => NodeEngineShutdownReason.BuildComplete, 3501RarNodeShutdownReason.Error => NodeEngineShutdownReason.Error, 3502RarNodeShutdownReason.AlreadyRunning => NodeEngineShutdownReason.Error, 3503RarNodeShutdownReason.ConnectionTimedOut => NodeEngineShutdownReason.ConnectionFailed, 3542if (shutdownReason == NodeEngineShutdownReason.Error) 3548if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)