6 instantiations of Scheduler
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
652
return new
Scheduler
();
Microsoft.Build.Engine.UnitTests (5)
BackEnd\Scheduler_Tests.cs (5)
72
_scheduler = new
Scheduler
();
381
_scheduler = new
Scheduler
();
506
var s = new
Scheduler
();
575
_scheduler = new
Scheduler
();
609
_scheduler = new
Scheduler
();
27 references to Scheduler
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (4)
709
config.ResultsNodeId =
Scheduler
.InvalidNodeId;
1835
HandleNewRequest(
Scheduler
.VirtualNode, blocker);
2342
if (node ==
Scheduler
.VirtualNode)
2633
BuildEventContext buildEventContext = new BuildEventContext(0,
Scheduler
.VirtualNode, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId);
BackEnd\BuildManager\CacheAggregator.cs (1)
81
newConfig.ResultsNodeId =
Scheduler
.InvalidNodeId;
BackEnd\Components\BuildComponentFactoryCollection.cs (1)
60
_componentEntriesByType[BuildComponentType.Scheduler] = new BuildComponentEntry(BuildComponentType.Scheduler,
Scheduler
.CreateComponent, CreationPattern.Singleton);
BackEnd\Components\BuildRequestEngine\BuildRequestEngine.cs (2)
364
if (_componentHost.BuildParameters.NodeId !=
Scheduler
.InProcNodeId)
366
config.ResultsNodeId =
Scheduler
.ResultsTransferredId;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
421
int nodeId =
Scheduler
.InProcNodeId;
563
if (nodeBuildEventContext.NodeId ==
Scheduler
.InProcNodeId)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
491
Scheduler
.InProcNodeId);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1193
if ((_requestEntry.RequestConfiguration.ResultsNodeId !=
Scheduler
.InvalidNodeId) &&
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
401
ErrorUtilities.VerifyThrow(_assignedNodeId ==
Scheduler
.InvalidNodeId || _assignedNodeId == nodeId, "Request must always resume on the same node on which it was started.");
408
ErrorUtilities.VerifyThrow(requiredNodeId ==
Scheduler
.InvalidNodeId || requiredNodeId == nodeId, "Request {0} cannot be assigned to node {1} because its configuration is already assigned to node {2}", _request.GlobalRequestId, nodeId, requiredNodeId);
BackEnd\Components\Scheduler\Scheduler.cs (2)
1491
if (assignedNodeForConfiguration !=
Scheduler
.InvalidNodeId)
1729
if (assignedNodeId !=
Scheduler
.InvalidNodeId)
BackEnd\Components\Scheduler\SchedulingData.cs (2)
640
return
Scheduler
.InvalidNodeId;
657
return requiredNodeId ==
Scheduler
.InvalidNodeId || requiredNodeId == nodeId;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
129
private int _resultsNodeId =
Scheduler
.InvalidNodeId;
Microsoft.Build.Engine.UnitTests (8)
BackEnd\CacheAggregator_Tests.cs (1)
292
aggregatedConfig.ResultsNodeId.ShouldBe(
Scheduler
.InvalidNodeId);
BackEnd\LoggingServicesLogMethod_Tests.cs (4)
872
projectCacheBuildEventContext.NodeId.ShouldBe(
Scheduler
.InProcNodeId);
875
BuildEventContext nodeBuildEventContext = new BuildEventContext(
Scheduler
.InProcNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId);
910
BuildEventContext nodeBuildEventContext = new BuildEventContext(
Scheduler
.InProcNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId);
941
NodeId.ShouldNotBe(
Scheduler
.InProcNodeId);
BackEnd\Scheduler_Tests.cs (3)
39
private
Scheduler
_scheduler;
506
var
s = new Scheduler();
557
Assert.Equal(
Scheduler
.InProcNodeId, response[0].NodeId);