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)
209
ErrorUtilities.VerifyThrow(
_nodeContexts
.TryGetValue(nodeKey, out NodeContext context), $"Invalid host context specified: {nodeKey}.");
221
List<NodeContext> contextsToShutDown = [..
_nodeContexts
.Values];
642
if (!
_nodeContexts
.ContainsKey(nodeKey))
655
NodeContext context =
_nodeContexts
[nodeKey];
686
if (!
_nodeContexts
.TryGetValue(nodeKey, out NodeContext context))
717
ErrorUtilities.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 _);
891
public IEnumerable<Process> GetProcesses() =>
_nodeContexts
.Values.Select(context => context.Process);