1 write to _nodeContexts
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
180
_nodeContexts
= new ConcurrentDictionary<int, NodeContext>();
9 references to _nodeContexts
Microsoft.Build (9)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (9)
55
return ComponentHost.BuildParameters.MaxNodeCount -
_nodeContexts
.Count;
85
if (
_nodeContexts
.Count + numberOfNodesToCreate > ComponentHost.BuildParameters.MaxNodeCount)
87
ErrorUtilities.ThrowInternalError("Exceeded max node count of '{0}', current count is '{1}' ", ComponentHost.BuildParameters.MaxNodeCount,
_nodeContexts
.Count);
117
_nodeContexts
[context.NodeId] = context;
134
ErrorUtilities.VerifyThrow(
_nodeContexts
.ContainsKey(nodeId), "Invalid node id specified: {0}.", nodeId);
136
SendData(
_nodeContexts
[nodeId], packet);
146
var contextsToShutDown = new List<NodeContext>(
_nodeContexts
.Values);
206
_nodeContexts
.TryRemove(nodeId, out _);
211
return
_nodeContexts
.Values.Select(context => context.Process);