1 write to _nodeContexts
Microsoft.Build (1)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
183
_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
return InternalError.Throw<IList<NodeInfo>>($"Exceeded max node count of '{ComponentHost.BuildParameters.MaxNodeCount}', current count is '{
_nodeContexts
.Count}' ");
120
_nodeContexts
[context.NodeId] = context;
137
Assumed.True(
_nodeContexts
.ContainsKey(nodeId), $"Invalid node id specified: {nodeId}.");
139
SendData(
_nodeContexts
[nodeId], packet);
149
var contextsToShutDown = new List<NodeContext>(
_nodeContexts
.Values);
209
_nodeContexts
.TryRemove(nodeId, out _);
214
return
_nodeContexts
.Values.Select(context => context.Process);