1 write to _nodeContexts
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
183_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) 87return InternalError.Throw<IList<NodeInfo>>($"Exceeded max node count of '{ComponentHost.BuildParameters.MaxNodeCount}', current count is '{_nodeContexts.Count}' "); 120_nodeContexts[context.NodeId] = context; 137Assumed.True(_nodeContexts.ContainsKey(nodeId), $"Invalid node id specified: {nodeId}."); 139SendData(_nodeContexts[nodeId], packet); 149var contextsToShutDown = new List<NodeContext>(_nodeContexts.Values); 209_nodeContexts.TryRemove(nodeId, out _); 214return _nodeContexts.Values.Select(context => context.Process);