6 instantiations of NodeInfo
Microsoft.Build (3)
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
199NodeInfo nodeInfo = new(nodeId, ProviderType);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (2)
107.Select(nc => new NodeInfo(nc.NodeId, ProviderType)) 115NodeInfo nodeInfo = new NodeInfo(context.NodeId, ProviderType);
Microsoft.Build.Engine.UnitTests (3)
BackEnd\Scheduler_Tests.cs (3)
78_scheduler.ReportNodesCreated(new NodeInfo[] { new NodeInfo(1, NodeProviderType.InProc) }); 404List<NodeInfo> nodeInfos = new List<NodeInfo>(new NodeInfo[] { new NodeInfo(1, NodeProviderType.InProc) }); 874nodeInfos.Add(new NodeInfo(nodeId, nodeType));
37 references to NodeInfo
Microsoft.Build (31)
BackEnd\BuildManager\BuildManager.cs (2)
2655IList<NodeInfo> newNodes = _nodeManager.CreateNodes(GetNodeConfiguration(), response.RequiredNodeType, response.NumberOfNodesToCreate); 2665foreach (var node in newNodes)
BackEnd\Components\Communications\INodeManager.cs (1)
29IList<NodeInfo> CreateNodes(NodeConfiguration configuration, NodeAffinity affinity, int numberOfNodesToCreate);
BackEnd\Components\Communications\INodeProvider.cs (2)
71IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory packetFactory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate);
BackEnd\Components\Communications\NodeManager.cs (8)
92public IList<NodeInfo> CreateNodes(NodeConfiguration configuration, NodeAffinity nodeAffinity, int numberOfNodesToCreate) 97List<NodeInfo> nodes = new(numberOfNodesToCreate); 304private IList<NodeInfo> AttemptCreateNode(INodeProvider nodeProvider, NodeConfiguration nodeConfiguration, int numberOfNodesToCreate) 310return new List<NodeInfo>(); 316return new List<NodeInfo>(); 333IList<NodeInfo> nodes = nodeProvider.CreateNodes(fromNodeId, this, AcquiredNodeConfigurationFactory, numberOfNodesToCreate); 335foreach (NodeInfo node in nodes) 342NodeConfiguration AcquiredNodeConfigurationFactory(NodeInfo nodeInfo)
BackEnd\Components\Communications\NodeProviderInProc.cs (4)
191public IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory factory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate) 193var nodes = new List<NodeInfo>(numberOfNodesToCreate); 199NodeInfo nodeInfo = new(nodeId, ProviderType);
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (5)
79public IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory factory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate) 88return new List<NodeInfo>(); 91ConcurrentBag<NodeInfo> nodes = new(); 115NodeInfo nodeInfo = new NodeInfo(context.NodeId, ProviderType);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (2)
164public IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory packetFactory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate)
BackEnd\Components\Communications\TaskHostNodeManager.cs (1)
49public IList<NodeInfo> CreateNodes(NodeConfiguration configuration, NodeAffinity affinity, int numberOfNodesToCreate)
BackEnd\Components\Scheduler\IScheduler.cs (1)
62IEnumerable<ScheduleResponse> ReportNodesCreated(IEnumerable<NodeInfo> nodeInfo);
BackEnd\Components\Scheduler\Scheduler.cs (5)
92private Dictionary<int, NodeInfo> _availableNodes; 486public IEnumerable<ScheduleResponse> ReportNodesCreated(IEnumerable<NodeInfo> nodeInfos) 490foreach (NodeInfo nodeInfo in nodeInfos) 542_availableNodes = new Dictionary<int, NodeInfo>(8); 2233foreach (NodeInfo node in _availableNodes.Values)
Microsoft.Build.Engine.UnitTests (6)
BackEnd\Scheduler_Tests.cs (6)
78_scheduler.ReportNodesCreated(new NodeInfo[] { new NodeInfo(1, NodeProviderType.InProc) }); 404List<NodeInfo> nodeInfos = new List<NodeInfo>(new NodeInfo[] { new NodeInfo(1, NodeProviderType.InProc) }); 856List<NodeInfo> nodeInfos = new List<NodeInfo>();