1 write to _nodeContexts
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
246_nodeContexts = new ConcurrentDictionary<TaskHostNodeKey, NodeContext>();
9 references to _nodeContexts
Microsoft.Build (9)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (9)
209ErrorUtilities.VerifyThrow(_nodeContexts.TryGetValue(nodeKey, out NodeContext context), $"Invalid host context specified: {nodeKey}."); 221List<NodeContext> contextsToShutDown = [.. _nodeContexts.Values]; 642if (!_nodeContexts.ContainsKey(nodeKey)) 655NodeContext context = _nodeContexts[nodeKey]; 686if (!_nodeContexts.TryGetValue(nodeKey, out NodeContext context)) 717ErrorUtilities.VerifyThrow(!_nodeContexts.ContainsKey(nodeKey), "We should not already have a node for this context! Did we forget to call DisconnectFromHost somewhere?"); 855_nodeContexts[nodeKey] = context; 876_nodeContexts.TryRemove(nodeKey, out _); 891public IEnumerable<Process> GetProcesses() => _nodeContexts.Values.Select(context => context.Process);