72 references to NodeEngineShutdownReason
Microsoft.Build (54)
BackEnd\Components\Communications\NodeProviderInProc.cs (7)
17using NodeEngineShutdownReason = Microsoft.Build.Execution.NodeEngineShutdownReason; 407NodeEngineShutdownReason reason = inProcNode.Run(out e); 444private void InProcNodeShutdown(NodeEngineShutdownReason reason, Exception e) 448case NodeEngineShutdownReason.BuildComplete: 449case NodeEngineShutdownReason.BuildCompleteReuse: 450case NodeEngineShutdownReason.Error: 453case 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)
70private NodeEngineShutdownReason _shutdownReason; 139public NodeEngineShutdownReason Run(out Exception shutdownException) 157NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 312_shutdownReason = NodeEngineShutdownReason.Error; 319private NodeEngineShutdownReason HandleShutdown(out Exception exception) 333if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 335_shutdownReason = NodeEngineShutdownReason.BuildComplete; 343if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 369_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 427_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 529_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; 869_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 870if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 877_shutdownReason = NodeEngineShutdownReason.BuildComplete; 891_shutdownReason = NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcServerNode.cs (15)
60private NodeEngineShutdownReason _shutdownReason; 94public NodeEngineShutdownReason Run(out Exception? shutdownException) 108return 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); 256private NodeEngineShutdownReason HandleShutdown(out Exception? exception) 283_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 344_shutdownReason = shouldReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 366_shutdownReason = NodeEngineShutdownReason.Error; 381_shutdownReason = NodeEngineShutdownReason.Error; 459_shutdownReason = _cancelRequested ? NodeEngineShutdownReason.BuildComplete : NodeEngineShutdownReason.BuildCompleteReuse;
MSBuild (18)
OutOfProcTaskHostNode.cs (10)
101private NodeEngineShutdownReason _shutdownReason; 845public NodeEngineShutdownReason Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1) 868NodeEngineShutdownReason shutdownReason = HandleShutdown(); 1216_shutdownReason = NodeEngineShutdownReason.BuildComplete; 1266_shutdownReason = NodeEngineShutdownReason.BuildCompleteReuse; 1271_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 1279private NodeEngineShutdownReason HandleShutdown() 1317_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested)); 1343_shutdownReason = NodeEngineShutdownReason.ConnectionFailed;
XMake.cs (8)
2986NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3013RarNodeShutdownReason.Complete => NodeEngineShutdownReason.BuildComplete, 3014RarNodeShutdownReason.Error => NodeEngineShutdownReason.Error, 3015RarNodeShutdownReason.AlreadyRunning => NodeEngineShutdownReason.Error, 3016RarNodeShutdownReason.ConnectionTimedOut => NodeEngineShutdownReason.ConnectionFailed, 3056if (shutdownReason == NodeEngineShutdownReason.Error) 3062if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)