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)
1533case NodeAffinity.OutOfProc: 1610TraceScheduler("Requesting creation of {0} new node(s) satisfying affinity {1}", outOfProcNodesToCreate, NodeAffinity.OutOfProc); 1611responses.Add(ScheduleResponse.CreateNewNodeResponse(NodeAffinity.OutOfProc, outOfProcNodesToCreate)); 1759existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 2195return 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)
278BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 279BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 288Assert.Equal(NodeAffinity.OutOfProc, response[0].RequiredNodeType); 302BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 303BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 312Assert.Equal(NodeAffinity.OutOfProc, response[0].RequiredNodeType); 365Assert.Equal(NodeAffinity.OutOfProc, response[1].RequiredNodeType); 414Assert.Equal(NodeAffinity.OutOfProc, moreResponses[1].RequiredNodeType); 431BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 432BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 433BuildRequest request3 = CreateBuildRequest(3, 3, new string[] { "baz" }, NodeAffinity.OutOfProc, _defaultParentRequest); 434BuildRequest request4 = CreateBuildRequest(4, 4, new string[] { "qux" }, NodeAffinity.OutOfProc, _defaultParentRequest); 443Assert.Equal(NodeAffinity.OutOfProc, response[0].RequiredNodeType); 461BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 473Assert.Equal(NodeAffinity.OutOfProc, response[1].RequiredNodeType); 491BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 492BuildRequest request2 = CreateBuildRequest(2, 2, new string[] { "bar" }, NodeAffinity.OutOfProc, _defaultParentRequest); 503Assert.Equal(NodeAffinity.OutOfProc, response[1].RequiredNodeType); 590BuildRequest request1 = CreateBuildRequest(1, 1, new string[] { "foo" }, NodeAffinity.OutOfProc, _defaultParentRequest); 592BuildRequest 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"));