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)
1496
case NodeAffinity.
InProc
:
1555
TraceScheduler("Requesting creation of new node satisfying affinity {0}", NodeAffinity.
InProc
);
1556
responses.Add(ScheduleResponse.CreateNewNodeResponse(NodeAffinity.
InProc
, 1));
1737
existingRequestAffinity = (_availableNodes[assignedNodeId].ProviderType == NodeProviderType.InProc) ? NodeAffinity.
InProc
: NodeAffinity.OutOfProc;
2170
return NodeAffinity.
InProc
;
2179
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)
2226
data.HostServices.SetNodeAffinity(data.ProjectFullPath, NodeAffinity.
InProc
);
3381
services.SetNodeAffinity(fileName, NodeAffinity.
InProc
);
BackEnd\Scheduler_Tests.cs (5)
394
BuildRequest request2 = CreateBuildRequest(2, 1, new string[] { "bar" }, NodeAffinity.
InProc
, _defaultParentRequest);
395
BuildRequest request3 = CreateBuildRequest(3, 1, new string[] { "bar" }, NodeAffinity.
InProc
, _defaultParentRequest);
400
Assert.Equal(NodeAffinity.
InProc
, response[0].RequiredNodeType);
589
BuildRequest request3 = CreateBuildRequest(3, 3, new string[] { "bar" }, NodeAffinity.
InProc
, _defaultParentRequest);
862
if (response.RequiredNodeType == NodeAffinity.
InProc
|| (response.RequiredNodeType == NodeAffinity.Any && !inProcNodeExists))
Instance\HostServices_Tests.cs (21)
126
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
136
hostServices.SetNodeAffinity("project", NodeAffinity.
InProc
);
137
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
152
hostServices.SetNodeAffinity("project1", NodeAffinity.
InProc
);
164
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
InProc
);
165
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
166
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project2"));
185
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
InProc
);
188
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project2"));
221
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
236
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
262
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
263
hostServices.SetNodeAffinity("project", NodeAffinity.
InProc
);
264
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
291
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
316
hostServices.SetNodeAffinity(String.Empty, NodeAffinity.
InProc
);
328
hostServices.SetNodeAffinity("project", NodeAffinity.
InProc
);
344
hostServices.GetNodeAffinity("project").ShouldBe(NodeAffinity.
InProc
);
356
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
377
Assert.Equal(NodeAffinity.
InProc
, hostServices.GetNodeAffinity("project"));
394
hostServices.SetNodeAffinity(project.FullPath, NodeAffinity.
InProc
);