34 references to Any
Microsoft.Build (10)
BackEnd\Components\Communications\NodeInfo.cs (1)
91
NodeAffinity.
Any
=> true,
BackEnd\Components\Communications\NodeManager.cs (2)
98
if ((nodeAffinity == NodeAffinity.
Any
|| nodeAffinity == NodeAffinity.InProc) && !_componentHost!.BuildParameters.DisableInProcNode)
103
if (nodes.Count < numberOfNodesToCreate && (nodeAffinity == NodeAffinity.
Any
|| nodeAffinity == NodeAffinity.OutOfProc))
BackEnd\Components\Scheduler\Scheduler.cs (6)
1517
case NodeAffinity.
Any
:
1724
NodeAffinity existingRequestAffinity = NodeAffinity.
Any
;
1725
if (requestAffinity != NodeAffinity.
Any
)
1752
if (existingRequestAffinity != NodeAffinity.
Any
&& existingRequestAffinity != requestAffinity)
2189
NodeAffinity affinity = NodeAffinity.
Any
;
2198
if (affinity == NodeAffinity.
Any
)
Instance\HostServices.cs (1)
293
return NodeAffinity.
Any
;
Microsoft.Build.Engine.UnitTests (24)
BackEnd\Scheduler_Tests.cs (5)
394
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
Any
, _defaultParentRequest);
802
return CreateBuildRequest(nodeRequestId, configId, targets, NodeAffinity.
Any
, parentRequest);
814
if (nodeAffinity != NodeAffinity.
Any
)
847
NodeAffinity.
Any
,
863
if (response.RequiredNodeType == NodeAffinity.InProc || (response.RequiredNodeType == NodeAffinity.
Any
&& !inProcNodeExists))
Instance\HostServices_Tests.cs (19)
115
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
141
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
142
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
154
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project2"));
173
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
Any
);
174
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
175
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project2"));
203
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
208
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
238
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
251
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
290
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
303
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
305
hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.
Any
);
342
hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.
Any
);
359
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
373
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
375
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
380
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));