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)
311
if (
_nodeContexts
is null)
316
List<NodeContext> contextsToShutDown = [..
_nodeContexts
.Values];
393
internal ConcurrentDictionary<TaskHostNodeKey, NodeContext> ConnectedNodes =>
_nodeContexts
;
422
if (
_nodeContexts
is not null)
576
_nodeContexts
.TryRemove(nodeKey, out _);
923
foreach (KeyValuePair<TaskHostNodeKey, NodeContext> existing in
_nodeContexts
)
973
if (!
_nodeContexts
.ContainsKey(nodeKey))
987
if (!
_nodeContexts
.TryGetValue(nodeKey, out NodeContext context))
1133
Assumed.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 _);
1380
public IEnumerable<Process> GetProcesses() =>
_nodeContexts
.Values.Select(context => context.Process);