2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
193NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode, result.NegotiatedPacketVersion); 443NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode, negotiatedVersion, nodeLaunchData.Handshake.HandshakeOptions);
24 references to NodeContext
Microsoft.Build (24)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (5)
27private ConcurrentDictionary<int, NodeContext> _nodeContexts; 105IList<NodeContext> nodeContexts = GetNodes(nodeLaunchData, nextNodeId, factory, NodeContextCreated, NodeContextTerminated, numberOfNodesToCreate); 116void NodeContextCreated(NodeContext context) 149var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values); 183_nodeContexts = new ConcurrentDictionary<int, NodeContext>();
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (10)
75internal delegate void NodeContextCreatedDelegate(NodeContext context); 97protected void SendData(NodeContext context, INodePacket packet) 108protected void ShutdownConnectedNodes(List<NodeContext> contextsToShutDown, bool enableReuse) 126foreach (NodeContext nodeContext in contextsToShutDown) 193NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode, result.NegotiatedPacketVersion); 209protected IList<NodeContext> GetNodes( 283ConcurrentQueue<NodeContext> nodeContexts = new(); 443NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode, negotiatedVersion, nodeLaunchData.Handshake.HandshakeOptions); 1181NodeContext context = (NodeContext)state;
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (9)
100private ConcurrentDictionary<TaskHostNodeKey, NodeContext> _nodeContexts; 209Assumed.True(_nodeContexts.TryGetValue(nodeKey, out NodeContext context), $"Invalid host context specified: {nodeKey}."); 221List<NodeContext> contextsToShutDown = [.. _nodeContexts.Values]; 246_nodeContexts = new ConcurrentDictionary<TaskHostNodeKey, NodeContext>(); 653NodeContext context = _nodeContexts[nodeKey]; 684if (!_nodeContexts.TryGetValue(nodeKey, out NodeContext context)) 723void OnNodeContextCreated(NodeContext context) => NodeContextCreated(context, nodeKey); 734IList<NodeContext> nodeContexts = GetNodes( 866private void NodeContextCreated(NodeContext context, TaskHostNodeKey nodeKey)