6 instantiations of Scheduler
Microsoft.Build (1)
BackEnd\Components\Scheduler\Scheduler.cs (1)
652return new Scheduler();
Microsoft.Build.Engine.UnitTests (5)
BackEnd\Scheduler_Tests.cs (5)
72_scheduler = new Scheduler(); 381_scheduler = new Scheduler(); 506var s = new Scheduler(); 575_scheduler = new Scheduler(); 609_scheduler = new Scheduler();
27 references to Scheduler
Microsoft.Build (19)
BackEnd\BuildManager\BuildManager.cs (4)
710config.ResultsNodeId = Scheduler.InvalidNodeId; 1836HandleNewRequest(Scheduler.VirtualNode, blocker); 2348if (node == Scheduler.VirtualNode) 2639BuildEventContext buildEventContext = new BuildEventContext(0, Scheduler.VirtualNode, BuildEventContext.InvalidProjectInstanceId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidTaskId);
BackEnd\BuildManager\CacheAggregator.cs (1)
81newConfig.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)
364if (_componentHost.BuildParameters.NodeId != Scheduler.InProcNodeId) 366config.ResultsNodeId = Scheduler.ResultsTransferredId;
BackEnd\Components\Logging\LoggingServiceLogMethods.cs (2)
421int nodeId = Scheduler.InProcNodeId; 563if (nodeBuildEventContext.NodeId == Scheduler.InProcNodeId)
BackEnd\Components\ProjectCache\ProjectCacheService.cs (1)
492Scheduler.InProcNodeId);
BackEnd\Components\RequestBuilder\RequestBuilder.cs (1)
1193if ((_requestEntry.RequestConfiguration.ResultsNodeId != Scheduler.InvalidNodeId) &&
BackEnd\Components\Scheduler\SchedulableRequest.cs (2)
401ErrorUtilities.VerifyThrow(_assignedNodeId == Scheduler.InvalidNodeId || _assignedNodeId == nodeId, "Request must always resume on the same node on which it was started."); 408ErrorUtilities.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)
1491if (assignedNodeForConfiguration != Scheduler.InvalidNodeId) 1729if (assignedNodeId != Scheduler.InvalidNodeId)
BackEnd\Components\Scheduler\SchedulingData.cs (2)
640return Scheduler.InvalidNodeId; 657return requiredNodeId == Scheduler.InvalidNodeId || requiredNodeId == nodeId;
BackEnd\Shared\BuildRequestConfiguration.cs (1)
129private int _resultsNodeId = Scheduler.InvalidNodeId;
Microsoft.Build.Engine.UnitTests (8)
BackEnd\CacheAggregator_Tests.cs (1)
292aggregatedConfig.ResultsNodeId.ShouldBe(Scheduler.InvalidNodeId);
BackEnd\LoggingServicesLogMethod_Tests.cs (4)
872projectCacheBuildEventContext.NodeId.ShouldBe(Scheduler.InProcNodeId); 875BuildEventContext nodeBuildEventContext = new BuildEventContext(Scheduler.InProcNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 910BuildEventContext nodeBuildEventContext = new BuildEventContext(Scheduler.InProcNodeId, BuildEventContext.InvalidTargetId, BuildEventContext.InvalidProjectContextId, BuildEventContext.InvalidTaskId); 941NodeId.ShouldNotBe(Scheduler.InProcNodeId);
BackEnd\Scheduler_Tests.cs (3)
39private Scheduler _scheduler; 506var s = new Scheduler(); 557Assert.Equal(Scheduler.InProcNodeId, response[0].NodeId);