36 references to GetNodeAffinity
Microsoft.Build (2)
BackEnd\Components\Scheduler\Scheduler.cs (2)
2193
affinity = request.HostServices.
GetNodeAffinity
(pathOfProject);
2202
affinity = _componentHost.BuildParameters.HostServices.
GetNodeAffinity
(pathOfProject);
Microsoft.Build.Engine.UnitTests (34)
Instance\HostServices_Tests.cs (34)
115
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
127
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
138
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
140
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project"));
142
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
154
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project2"));
166
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
167
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project2"));
170
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project"));
171
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project2"));
174
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
175
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project2"));
188
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project"));
189
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project2"));
201
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project"));
203
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
206
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project"));
208
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
222
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
237
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
263
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
265
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
292
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
305
hostServices.
GetNodeAffinity
("project").ShouldBe(NodeAffinity.Any);
342
hostServices.
GetNodeAffinity
("project").ShouldBe(NodeAffinity.Any);
345
hostServices.
GetNodeAffinity
("project").ShouldBe(NodeAffinity.InProc);
357
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
359
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
361
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project"));
374
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project2"));
375
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
378
Assert.Equal(NodeAffinity.InProc, hostServices.
GetNodeAffinity
("project"));
380
Assert.Equal(NodeAffinity.Any, hostServices.
GetNodeAffinity
("project"));
381
Assert.Equal(NodeAffinity.OutOfProc, hostServices.
GetNodeAffinity
("project2"));