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