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)
1509
case NodeAffinity.
OutOfProc
:
1586
TraceScheduler("Requesting creation of {0} new node(s) satisfying affinity {1}", outOfProcNodesToCreate, NodeAffinity.
OutOfProc
);
1587
responses.Add(ScheduleResponse.CreateNewNodeResponse(NodeAffinity.
OutOfProc
, outOfProcNodesToCreate));
1737
existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.
OutOfProc
;
2165
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)
273
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
274
BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
283
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
297
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
298
BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
307
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
360
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
409
Assert.Equal(NodeAffinity.
OutOfProc
, moreResponses[1].RequiredNodeType);
426
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
427
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
428
BuildRequest request3 = CreateBuildRequest(3, 3, new string[] { "baz" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
429
BuildRequest request4 = CreateBuildRequest(4, 4, new string[] { "qux" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
438
Assert.Equal(NodeAffinity.
OutOfProc
, response[0].RequiredNodeType);
456
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
468
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
486
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
487
BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
498
Assert.Equal(NodeAffinity.
OutOfProc
, response[1].RequiredNodeType);
585
BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.
OutOfProc
, _defaultParentRequest);
587
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"));