1 write to _nodeContexts
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
180_nodeContexts = new ConcurrentDictionary<int, NodeContext>();
9 references to _nodeContexts
Microsoft.Build (9)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (9)
55return ComponentHost.BuildParameters.MaxNodeCount - _nodeContexts.Count; 85if (_nodeContexts.Count + numberOfNodesToCreate > ComponentHost.BuildParameters.MaxNodeCount) 87ErrorUtilities.ThrowInternalError("Exceeded max node count of '{0}', current count is '{1}' ", ComponentHost.BuildParameters.MaxNodeCount, _nodeContexts.Count); 117_nodeContexts[context.NodeId] = context; 134ErrorUtilities.VerifyThrow(_nodeContexts.ContainsKey(nodeId), "Invalid node id specified: {0}.", nodeId); 136SendData(_nodeContexts[nodeId], packet); 146var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values); 206_nodeContexts.TryRemove(nodeId, out _); 211return _nodeContexts.Values.Select(context => context.Process);