38 references to InProc
Microsoft.Build (10)
BackEnd\Components\Communications\NodeInfo.cs (1)
92NodeAffinity.InProc => _providerType == NodeProviderType.InProc,
BackEnd\Components\Communications\NodeManager.cs (1)
98if ((nodeAffinity == NodeAffinity.Any || nodeAffinity == NodeAffinity.InProc) && !_componentHost!.BuildParameters.DisableInProcNode)
BackEnd\Components\Scheduler\Scheduler.cs (6)
1500case NodeAffinity.InProc: 1559TraceScheduler("Requesting creation of new node satisfying affinity {0}", NodeAffinity.InProc); 1560responses.Add(ScheduleResponse.CreateNewNodeResponse(NodeAffinity.InProc, 1)); 1741existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.InProc : NodeAffinity.OutOfProc; 2174return NodeAffinity.InProc; 2183return NodeAffinity.InProc;
Instance\HostServices.cs (2)
217ErrorUtilities.VerifyThrowInvalidOperation(nodeAffinity == NodeAffinity.InProc, "InvalidAffinityForProjectWithHostObject"); 273return NodeAffinity.InProc;
Microsoft.Build.Engine.UnitTests (28)
BackEnd\BuildManager_Tests.cs (2)
2162data.HostServices.SetNodeAffinity(data.ProjectFullPath, NodeAffinity.InProc); 3317services.SetNodeAffinity(fileName, NodeAffinity.InProc);
BackEnd\Scheduler_Tests.cs (5)
395BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.InProc, _defaultParentRequest); 396BuildRequest request3 = CreateBuildRequest(3, 1, new string[] { "bar" }, NodeAffinity.InProc, _defaultParentRequest); 401Assert.Equal(NodeAffinity.InProc, response[0].RequiredNodeType); 590BuildRequest request3 = CreateBuildRequest(3, 3, new string[] { "bar" }, NodeAffinity.InProc, _defaultParentRequest); 862if (response.RequiredNodeType == NodeAffinity.InProc || (response.RequiredNodeType == NodeAffinity.Any && !inProcNodeExists))
Instance\HostServices_Tests.cs (21)
127Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 137hostServices.SetNodeAffinity("project", NodeAffinity.InProc); 138Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 153hostServices.SetNodeAffinity("project1", NodeAffinity.InProc); 165hostServices.SetNodeAffinity(String.Empty, NodeAffinity.InProc); 166Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 167Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project2")); 186hostServices.SetNodeAffinity(String.Empty, NodeAffinity.InProc); 189Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project2")); 222Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 237Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 263Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 264hostServices.SetNodeAffinity("project", NodeAffinity.InProc); 265Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 292Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 317hostServices.SetNodeAffinity(String.Empty, NodeAffinity.InProc); 329hostServices.SetNodeAffinity("project", NodeAffinity.InProc); 345hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.InProc); 357Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 378Assert.Equal(NodeAffinity.InProc, hostServices.GetNodeAffinity("project")); 395hostServices.SetNodeAffinity(project.FullPath, NodeAffinity.InProc);