2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
193NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode, result.NegotiatedPacketVersion); 456NodeContext 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; 106IList<NodeContext> nodeContexts = GetNodes(nodeLaunchData, nextNodeId, factory, NodeContextCreated, NodeContextTerminated, numberOfNodesToCreate); 117void NodeContextCreated(NodeContext context) 150var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values); 184_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( 293ConcurrentQueue<NodeContext> nodeContexts = new(); 456NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode, negotiatedVersion, nodeLaunchData.Handshake.HandshakeOptions); 1119NodeContext context = (NodeContext)state;
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (9)
87private ConcurrentDictionary<TaskHostNodeKey, NodeContext> _nodeContexts; 201ErrorUtilities.VerifyThrow(_nodeContexts.TryGetValue(nodeKey, out NodeContext context), "Invalid host context specified: {0}.", nodeKey); 213List<NodeContext> contextsToShutDown = [.. _nodeContexts.Values]; 238_nodeContexts = new ConcurrentDictionary<TaskHostNodeKey, NodeContext>(); 632NodeContext context = _nodeContexts[nodeKey]; 655if (!_nodeContexts.TryGetValue(nodeKey, out NodeContext context)) 681void OnNodeContextCreated(NodeContext context) => NodeContextCreated(context, nodeKey); 692IList<NodeContext> nodeContexts = GetNodes( 809private void NodeContextCreated(NodeContext context, TaskHostNodeKey nodeKey)