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