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)
1513
case NodeAffinity.
Any
:
1720
NodeAffinity existingRequestAffinity = NodeAffinity.
Any
;
1721
if (requestAffinity != NodeAffinity.
Any
)
1748
if (existingRequestAffinity != NodeAffinity.
Any
&& existingRequestAffinity != requestAffinity)
2185
NodeAffinity affinity = NodeAffinity.
Any
;
2194
if (affinity == NodeAffinity.
Any
)
Instance\HostServices.cs (1)
293
return NodeAffinity.
Any
;
Microsoft.Build.Engine.UnitTests (24)
BackEnd\Scheduler_Tests.cs (5)
393
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
Any
, _defaultParentRequest);
801
return CreateBuildRequest(nodeRequestId, configId, targets, NodeAffinity.
Any
, parentRequest);
813
if (nodeAffinity != NodeAffinity.
Any
)
846
NodeAffinity.
Any
,
862
if (response.RequiredNodeType == NodeAffinity.InProc || (response.RequiredNodeType == NodeAffinity.
Any
&& !inProcNodeExists))
Instance\HostServices_Tests.cs (19)
114
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
140
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
141
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
153
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project2"));
172
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
Any
);
173
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
174
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project2"));
202
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
207
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
237
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
250
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
289
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
302
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
304
hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.
Any
);
341
hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.
Any
);
358
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
372
hostServices.SetNodeAffinity("project", NodeAffinity.
Any
);
374
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));
379
Assert.Equal(NodeAffinity.
Any
, hostServices.GetNodeAffinity("project"));