49 references to OutOfProc
Microsoft.Build (8)
BackEnd\Components\Communications\NodeInfo.cs (1)
93NodeAffinity.OutOfProc => _providerType != NodeProviderType.InProc,
BackEnd\Components\Communications\NodeManager.cs (1)
103if (nodes.Count < numberOfNodesToCreate && (nodeAffinity == NodeAffinity.Any || nodeAffinity == NodeAffinity.OutOfProc))
BackEnd\Components\Scheduler\Scheduler.cs (5)
1509case NodeAffinity.OutOfProc: 1586TraceScheduler("Requesting creation of {0} new node(s) satisfying affinity {1}", outOfProcNodesToCreate, NodeAffinity.OutOfProc); 1587responses.Add(ScheduleResponse.CreateNewNodeResponse(NodeAffinity.OutOfProc, outOfProcNodesToCreate)); 1737existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 2165return NodeAffinity.OutOfProc;
Instance\HostServices.cs (1)
141bool hasExplicitOutOfProcAffinity = (GetNodeAffinity(projectFile, out isExplicit) == NodeAffinity.OutOfProc) && isExplicit;
Microsoft.Build.Engine.UnitTests (41)
BackEnd\BuildManager_Tests.cs (1)
3373services.SetNodeAffinity(fileName, NodeAffinity.OutOfProc);
BackEnd\Scheduler_Tests.cs (20)
273BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 274BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 283Assert.Equal(NodeAffinity.OutOfProc, response[0].RequiredNodeType); 297BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 298BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 307Assert.Equal(NodeAffinity.OutOfProc, response[0].RequiredNodeType); 360Assert.Equal(NodeAffinity.OutOfProc, response[1].RequiredNodeType); 409Assert.Equal(NodeAffinity.OutOfProc, moreResponses[1].RequiredNodeType); 426BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 427BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 428BuildRequest request3 = CreateBuildRequest(3, 3, new string[] { "baz" }, NodeAffinity.OutOfProc, _defaultParentRequest); 429BuildRequest request4 = CreateBuildRequest(4, 4, new string[] { "qux" }, NodeAffinity.OutOfProc, _defaultParentRequest); 438Assert.Equal(NodeAffinity.OutOfProc, response[0].RequiredNodeType); 456BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 468Assert.Equal(NodeAffinity.OutOfProc, response[1].RequiredNodeType); 486BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 487BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 498Assert.Equal(NodeAffinity.OutOfProc, response[1].RequiredNodeType); 585BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 587BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest);
Instance\HostServices_Tests.cs (20)
138hostServices.SetNodeAffinity("project", NodeAffinity.OutOfProc); 139Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project")); 168hostServices.SetNodeAffinity(String.Empty, NodeAffinity.OutOfProc); 169Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project")); 170Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project2")); 186hostServices.SetNodeAffinity("project", NodeAffinity.OutOfProc); 187Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project")); 199hostServices.SetNodeAffinity("project", NodeAffinity.OutOfProc); 200Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project")); 201hostServices.SetNodeAffinity(null, NodeAffinity.OutOfProc); 204hostServices.SetNodeAffinity(String.Empty, NodeAffinity.OutOfProc); 205Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project")); 206hostServices.SetNodeAffinity(null, NodeAffinity.OutOfProc); 222hostServices.SetNodeAffinity("project", NodeAffinity.OutOfProc); 277hostServices.SetNodeAffinity("project", NodeAffinity.OutOfProc); 359hostServices.SetNodeAffinity("project", NodeAffinity.OutOfProc); 360Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project")); 371hostServices.SetNodeAffinity(String.Empty, NodeAffinity.OutOfProc); 373Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project2")); 380Assert.Equal(NodeAffinity.OutOfProc, hostServices.GetNodeAffinity("project2"));