72 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) 363_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 421_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 523_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete;
BackEnd\Node\OutOfProcNode.cs (17)
122private NodeEngineShutdownReason _shutdownReason; 228public NodeEngineShutdownReason Run(out Exception shutdownException) 240public NodeEngineShutdownReason Run(bool enableReuse, out Exception shutdownException) 252public NodeEngineShutdownReason Run(bool enableReuse, bool lowPriority, out Exception shutdownException) 267NodeEngineShutdownReason shutdownReason = HandleShutdown(out shutdownException); 451_shutdownReason = NodeEngineShutdownReason.Error; 458private NodeEngineShutdownReason HandleShutdown(out Exception exception) 475if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 485if (_shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse) 492_taskHostNodeManager.ShutdownConnectedNodes(_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse); 535_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested, exception)); 585_shutdownReason = NodeEngineShutdownReason.ConnectionFailed; 873_shutdownReason = buildComplete.PrepareForReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 874if (_shutdownReason == NodeEngineShutdownReason.BuildCompleteReuse) 881_shutdownReason = NodeEngineShutdownReason.BuildComplete; 895_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; 337_shutdownReason = shouldReuse ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 359_shutdownReason = NodeEngineShutdownReason.Error; 374_shutdownReason = NodeEngineShutdownReason.Error; 468_shutdownReason = (_cancelRequested || command.ShutdownAfterBuild) ? NodeEngineShutdownReason.BuildComplete : NodeEngineShutdownReason.BuildCompleteReuse;
MSBuild (18)
OutOfProcTaskHostNode.cs (10)
124private NodeEngineShutdownReason _shutdownReason; 866public NodeEngineShutdownReason Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1) 889NodeEngineShutdownReason shutdownReason = HandleShutdown(); 1280_shutdownReason = NodeEngineShutdownReason.BuildComplete; 1334_shutdownReason = NodeEngineShutdownReason.BuildCompleteReuse; 1339_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 1347private NodeEngineShutdownReason HandleShutdown() 1385_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested)); 1411_shutdownReason = NodeEngineShutdownReason.ConnectionFailed;
XMake.cs (8)
3191NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3218RarNodeShutdownReason.Complete => NodeEngineShutdownReason.BuildComplete, 3219RarNodeShutdownReason.Error => NodeEngineShutdownReason.Error, 3220RarNodeShutdownReason.AlreadyRunning => NodeEngineShutdownReason.Error, 3221RarNodeShutdownReason.ConnectionTimedOut => NodeEngineShutdownReason.ConnectionFailed, 3261if (shutdownReason == NodeEngineShutdownReason.Error) 3267if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)