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)
204
ErrorUtilities.VerifyThrow(
_nodeContexts
.TryGetValue(nodeKey, out NodeContext context), "Invalid host context specified: {0}.", nodeKey);
216
List<NodeContext> contextsToShutDown = [..
_nodeContexts
.Values];
603
if (!
_nodeContexts
.ContainsKey(nodeKey))
615
NodeContext context =
_nodeContexts
[nodeKey];
638
if (!
_nodeContexts
.TryGetValue(nodeKey, out NodeContext context))
656
ErrorUtilities.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 _);
811
public IEnumerable<Process> GetProcesses() =>
_nodeContexts
.Values.Select(context => context.Process);