28 references to InvalidNodeId
Microsoft.Build (27)
BackEnd\BuildManager\BuildManager.cs (1)
710config.ResultsNodeId = Scheduler.InvalidNodeId;
BackEnd\BuildManager\CacheAggregator.cs (1)
81newConfig.ResultsNodeId = Scheduler.InvalidNodeId;
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1193if ((_requestEntry.RequestConfiguration.ResultsNodeId != Scheduler.InvalidNodeId) &&
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
401ErrorUtilities.VerifyThrow(_assignedNodeId == Scheduler.InvalidNodeId || _assignedNodeId == nodeId, "Request must always resume on the same node on which it was started."); 408ErrorUtilities.VerifyThrow(requiredNodeId == Scheduler.InvalidNodeId || requiredNodeId == nodeId, "Request {0} cannot be assigned to node {1} because its configuration is already assigned to node {2}", _request.GlobalRequestId, nodeId, requiredNodeId);
BackEnd\Components\Scheduler\Scheduler.cs (19)
443int parentNode = (unscheduledRequest.Parent == null) ? InvalidNodeId : unscheduledRequest.Parent.AssignedNode; 1067int requestRequiredNodeId = InvalidNodeId; 1073if (requiredNodeId == InvalidNodeId || idleNodes.Contains(requiredNodeId)) 1088int nodeIdToAssign = requestRequiredNodeId == InvalidNodeId ? idleNodes.First() : requestRequiredNodeId; 1109int requestRequiredNodeId = InvalidNodeId; 1115if (requiredNodeId == InvalidNodeId || idleNodes.Contains(requiredNodeId)) 1130int nodeIdToAssign = requestRequiredNodeId == InvalidNodeId ? idleNodes.First() : requestRequiredNodeId; 1161if (requiredNodeId == InvalidNodeId || requiredNodeId == nodeId) 1187if (requiredNodeId == InvalidNodeId) 1359ErrorUtilities.VerifyThrow(nodeId != InvalidNodeId, "Invalid node id specified."); 1369if (config.ResultsNodeId == InvalidNodeId) 1374ErrorUtilities.VerifyThrow(config.ResultsNodeId != InvalidNodeId, "Configuration's results node is not set."); 1491if (assignedNodeForConfiguration != Scheduler.InvalidNodeId) 1695int nodeForResults = (parentRequest == null) ? InvalidNodeId : parentRequest.AssignedNode; 1729if (assignedNodeId != Scheduler.InvalidNodeId) 1844int nodeForResults = (request.Parent != null) ? request.Parent.AssignedNode : InvalidNodeId; 1868if (response.NodeId != InvalidNodeId) 2115ErrorUtilities.VerifyThrow(parentRequestNode != InvalidNodeId, "Invalid parent node provided."); 2363if (buildEvent.Request.AssignedNode != InvalidNodeId)
BackEnd\Components\Scheduler\SchedulingData.cs (2)
640return Scheduler.InvalidNodeId; 657return requiredNodeId == Scheduler.InvalidNodeId || requiredNodeId == nodeId;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
129private int _resultsNodeId = Scheduler.InvalidNodeId;
Microsoft.Build.Engine.UnitTests (1)
BackEnd\CacheAggregator_Tests.cs (1)
292aggregatedConfig.ResultsNodeId.ShouldBe(Scheduler.InvalidNodeId);