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