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; 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; 451_shutdownReason = _cancelRequested ? NodeEngineShutdownReason.BuildComplete : NodeEngineShutdownReason.BuildCompleteReuse;
MSBuild (18)
OutOfProcTaskHostNode.cs (10)
100private NodeEngineShutdownReason _shutdownReason; 691public NodeEngineShutdownReason Run(out Exception shutdownException, bool nodeReuse = false, byte parentPacketVersion = 1) 714NodeEngineShutdownReason shutdownReason = HandleShutdown(); 903_shutdownReason = NodeEngineShutdownReason.BuildComplete; 947_shutdownReason = NodeEngineShutdownReason.BuildCompleteReuse; 952_shutdownReason = buildComplete.PrepareForReuse && Traits.Instance.EscapeHatches.ReuseTaskHostNodes ? NodeEngineShutdownReason.BuildCompleteReuse : NodeEngineShutdownReason.BuildComplete; 960private NodeEngineShutdownReason HandleShutdown() 991_nodeEndpoint.SendData(new NodeShutdown(_shutdownReason == NodeEngineShutdownReason.Error ? NodeShutdownReason.Error : NodeShutdownReason.Requested)); 1017_shutdownReason = NodeEngineShutdownReason.ConnectionFailed;
XMake.cs (8)
2973NodeEngineShutdownReason shutdownReason = NodeEngineShutdownReason.Error; 3000RarNodeShutdownReason.Complete => NodeEngineShutdownReason.BuildComplete, 3001RarNodeShutdownReason.Error => NodeEngineShutdownReason.Error, 3002RarNodeShutdownReason.AlreadyRunning => NodeEngineShutdownReason.Error, 3003RarNodeShutdownReason.ConnectionTimedOut => NodeEngineShutdownReason.ConnectionFailed, 3043if (shutdownReason == NodeEngineShutdownReason.Error) 3049if (shutdownReason != NodeEngineShutdownReason.BuildCompleteReuse)