1 write to _nodeContexts
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
241_nodeContexts = new ConcurrentDictionary<TaskHostNodeKey, NodeContext>();
9 references to _nodeContexts
Microsoft.Build (9)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (9)
204ErrorUtilities.VerifyThrow(_nodeContexts.TryGetValue(nodeKey, out NodeContext context), "Invalid host context specified: {0}.", nodeKey); 216List<NodeContext> contextsToShutDown = [.. _nodeContexts.Values]; 603if (!_nodeContexts.ContainsKey(nodeKey)) 615NodeContext context = _nodeContexts[nodeKey]; 638if (!_nodeContexts.TryGetValue(nodeKey, out NodeContext context)) 656ErrorUtilities.VerifyThrow(!_nodeContexts.ContainsKey(nodeKey), "We should not already have a node for this context! Did we forget to call DisconnectFromHost somewhere?"); 775_nodeContexts[nodeKey] = context; 796_nodeContexts.TryRemove(nodeKey, out _); 811public IEnumerable<Process> GetProcesses() => _nodeContexts.Values.Select(context => context.Process);