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)
1513case NodeAffinity.Any: 1720NodeAffinity existingRequestAffinity = NodeAffinity.Any; 1721if (requestAffinity != NodeAffinity.Any) 1748if (existingRequestAffinity != NodeAffinity.Any && existingRequestAffinity != requestAffinity) 2185NodeAffinity affinity = NodeAffinity.Any; 2194if (affinity == NodeAffinity.Any)
Instance\HostServices.cs (1)
293return NodeAffinity.Any;
Microsoft.Build.Engine.UnitTests (24)
BackEnd\Scheduler_Tests.cs (5)
393BuildRequest 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)
114Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project")); 140hostServices.SetNodeAffinity("project", NodeAffinity.Any); 141Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project")); 153Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project2")); 172hostServices.SetNodeAffinity(String.Empty, NodeAffinity.Any); 173Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project")); 174Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project2")); 202Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project")); 207Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project")); 237hostServices.SetNodeAffinity("project", NodeAffinity.Any); 250hostServices.SetNodeAffinity("project", NodeAffinity.Any); 289hostServices.SetNodeAffinity("project", NodeAffinity.Any); 302hostServices.SetNodeAffinity("project", NodeAffinity.Any); 304hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.Any); 341hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.Any); 358Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project")); 372hostServices.SetNodeAffinity("project", NodeAffinity.Any); 374Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project")); 379Assert.Equal(NodeAffinity.Any, hostServices.GetNodeAffinity("project"));