2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
193NodeContext nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode, result.NegotiatedPacketVersion); 420NodeContext 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( 267ConcurrentQueue<NodeContext> nodeContexts = new(); 420NodeContext nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode, negotiatedVersion, nodeLaunchData.Handshake.HandshakeOptions); 1077NodeContext context = (NodeContext)state;
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (9)
87private ConcurrentDictionary<TaskHostNodeKey, NodeContext> _nodeContexts; 204ErrorUtilities.VerifyThrow(_nodeContexts.TryGetValue(nodeKey, out NodeContext context), "Invalid host context specified: {0}.", nodeKey); 216List<NodeContext> contextsToShutDown = [.. _nodeContexts.Values]; 241_nodeContexts = new ConcurrentDictionary<TaskHostNodeKey, NodeContext>(); 615NodeContext context = _nodeContexts[nodeKey]; 638if (!_nodeContexts.TryGetValue(nodeKey, out NodeContext context)) 664void OnNodeContextCreated(NodeContext context) => NodeContextCreated(context, nodeKey); 675IList<NodeContext> nodeContexts = GetNodes( 773private void NodeContextCreated(NodeContext context, TaskHostNodeKey nodeKey)