49 references to OutOfProc
Microsoft.Build (8)
BackEnd\Components\Communications\NodeInfo.cs (1)
93
NodeAffinity.
OutOfProc
=> _providerType != NodeProviderType.InProc,
BackEnd\Components\Communications\NodeManager.cs (1)
103
if (nodes.Count < numberOfNodesToCreate && (nodeAffinity == NodeAffinity.Any || nodeAffinity == NodeAffinity.
OutOfProc
))
BackEnd\Components\Scheduler\Scheduler.cs (5)
1533
case NodeAffinity.
OutOfProc
:
1610
TraceScheduler("Requesting creation of {0} new node(s) satisfying affinity {1}", outOfProcNodesToCreate, NodeAffinity.
OutOfProc
);
1611
responses.Add(ScheduleResponse.CreateNewNodeResponse(NodeAffinity.
OutOfProc
, outOfProcNodesToCreate));
1759
existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.
OutOfProc
;
2195
return NodeAffinity.
OutOfProc
;
Instance\HostServices.cs (1)
141
bool hasExplicitOutOfProcAffinity = (GetNodeAffinity(projectFile, out isExplicit) == NodeAffinity.
OutOfProc
) && isExplicit;
Microsoft.Build.Engine.UnitTests (41)
BackEnd\BuildManager_Tests.cs (1)
3373
services.SetNodeAffinity(fileName, NodeAffinity.
OutOfProc
);
BackEnd\Scheduler_Tests.cs (20)
278
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
279
BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
288
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
302
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
303
BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
312
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
365
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
414
Assert.Equal(NodeAffinity.
OutOfProc
, moreResponses[1].RequiredNodeType);
431
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
432
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
433
BuildRequest request3 = CreateBuildRequest(3, 3, new string[] { "baz" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
434
BuildRequest request4 = CreateBuildRequest(4, 4, new string[] { "qux" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
443
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
461
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
473
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
491
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
492
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
503
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
590
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
592
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
Instance\HostServices_Tests.cs (20)
138
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
139
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
168
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
OutOfProc
);
169
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
170
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project2"));
186
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
187
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
199
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
200
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
201
hostServices.SetNodeAffinity(null, NodeAffinity.
OutOfProc
);
204
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
OutOfProc
);
205
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
206
hostServices.SetNodeAffinity(null, NodeAffinity.
OutOfProc
);
222
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
277
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
359
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
360
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
371
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
OutOfProc
);
373
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project2"));
380
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project2"));