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)
1513
case NodeAffinity.
OutOfProc
:
1590
TraceScheduler("Requesting creation of {0} new node(s) satisfying affinity {1}", outOfProcNodesToCreate, NodeAffinity.
OutOfProc
);
1591
responses.Add(ScheduleResponse.CreateNewNodeResponse(NodeAffinity.
OutOfProc
, outOfProcNodesToCreate));
1741
existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.
OutOfProc
;
2169
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)
3374
services.SetNodeAffinity(fileName, NodeAffinity.
OutOfProc
);
BackEnd\Scheduler_Tests.cs (20)
274
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
275
BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
284
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
298
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
299
BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
308
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
361
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
410
Assert.Equal(NodeAffinity.
OutOfProc
, moreResponses[1].RequiredNodeType);
427
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
428
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
429
BuildRequest request3 = CreateBuildRequest(3, 3, new string[] { "baz" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
430
BuildRequest request4 = CreateBuildRequest(4, 4, new string[] { "qux" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
439
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
457
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
469
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
487
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
488
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
499
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
586
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
588
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
Instance\HostServices_Tests.cs (20)
139
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
140
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
169
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
OutOfProc
);
170
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
171
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project2"));
187
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
188
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
200
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
201
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
202
hostServices.SetNodeAffinity(null, NodeAffinity.
OutOfProc
);
205
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
OutOfProc
);
206
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
207
hostServices.SetNodeAffinity(null, NodeAffinity.
OutOfProc
);
223
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
278
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
360
hostServices.SetNodeAffinity("project", NodeAffinity.
OutOfProc
);
361
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project"));
372
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
OutOfProc
);
374
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project2"));
381
Assert.Equal(NodeAffinity.
OutOfProc
, hostServices.GetNodeAffinity("project2"));