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