2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
178NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode); 384NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
22 references to NodeContext
Microsoft.Build (22)
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 (10)
76internal delegate void NodeContextCreatedDelegate(NodeContext context); 98protected void SendData(NodeContext context, INodePacket packet) 109protected void ShutdownConnectedNodes(List<NodeContext> contextsToShutDown, bool enableReuse) 123foreach (NodeContext nodeContext in contextsToShutDown) 178NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode); 188protected IList<NodeContext> GetNodes(string msbuildLocation, 240ConcurrentQueue<NodeContext> nodeContexts = new(); 384NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode); 746NodeContext context = (NodeContext)state;
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)