1 write to _nodeContexts
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
427_nodeContexts = new ConcurrentDictionary<TaskHostNodeKey, NodeContext>();
12 references to _nodeContexts
Microsoft.Build (12)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (12)
311if (_nodeContexts is null) 316List<NodeContext> contextsToShutDown = [.. _nodeContexts.Values]; 393internal ConcurrentDictionary<TaskHostNodeKey, NodeContext> ConnectedNodes => _nodeContexts; 422if (_nodeContexts is not null) 576_nodeContexts.TryRemove(nodeKey, out _); 923foreach (KeyValuePair<TaskHostNodeKey, NodeContext> existing in _nodeContexts) 973if (!_nodeContexts.ContainsKey(nodeKey)) 987if (!_nodeContexts.TryGetValue(nodeKey, out NodeContext context)) 1133Assumed.False(_nodeContexts.ContainsKey(nodeKey), "We should not already have a node for this context! Did we forget to call DisconnectFromHost somewhere?"); 1291_nodeContexts[nodeKey] = context; 1369_nodeContexts.TryRemove(nodeKey, out _); 1380public IEnumerable<Process> GetProcesses() => _nodeContexts.Values.Select(context => context.Process);