2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
176NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode); 381NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
20 references to NodeContext
Microsoft.Build (20)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (5)
27private ConcurrentDictionary<int, NodeContext> _nodeContexts; 102IList<NodeContext> nodeContexts = GetNodes(null, commandLineArgs, nextNodeId, factory, hostHandshake, NodeContextCreated, NodeContextTerminated, numberOfNodesToCreate); 113void NodeContextCreated(NodeContext context) 146var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values); 180_nodeContexts = new ConcurrentDictionary<int, NodeContext>();
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (8)
74internal delegate void NodeContextCreatedDelegate(NodeContext context); 96protected void SendData(NodeContext context, INodePacket packet) 107protected void ShutdownConnectedNodes(List<NodeContext> contextsToShutDown, bool enableReuse) 121foreach (NodeContext nodeContext in contextsToShutDown) 176NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode); 186protected IList<NodeContext> GetNodes(string msbuildLocation, 238ConcurrentQueue<NodeContext> nodeContexts = new(); 381NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (7)
88private Dictionary<HandshakeOptions, NodeContext> _nodeContexts; 198List<NodeContext> contextsToShutDown; 202contextsToShutDown = new List<NodeContext>(_nodeContexts.Values); 228_nodeContexts = new Dictionary<HandshakeOptions, NodeContext>(); 502NodeContext context = _nodeContexts[hostContext]; 555IList<NodeContext> nodeContexts = GetNodes( 571private void NodeContextCreated(NodeContext context)