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