2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
176
NodeContext nodeContext = new
NodeContext
(0, nodeProcess, nodeStream, factory, terminateNode);
381
NodeContext nodeContext =
new
(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
20 references to NodeContext
Microsoft.Build (20)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (5)
27
private ConcurrentDictionary<int,
NodeContext
> _nodeContexts;
102
IList<
NodeContext
> nodeContexts = GetNodes(null, commandLineArgs, nextNodeId, factory, hostHandshake, NodeContextCreated, NodeContextTerminated, numberOfNodesToCreate);
113
void NodeContextCreated(
NodeContext
context)
146
var contextsToShutDown = new List<
NodeContext
>(_nodeContexts.Values);
180
_nodeContexts = new ConcurrentDictionary<int,
NodeContext
>();
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (8)
74
internal delegate void NodeContextCreatedDelegate(
NodeContext
context);
96
protected void SendData(
NodeContext
context, INodePacket packet)
107
protected void ShutdownConnectedNodes(List<
NodeContext
> contextsToShutDown, bool enableReuse)
121
foreach (
NodeContext
nodeContext in contextsToShutDown)
176
NodeContext
nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode);
186
protected IList<
NodeContext
> GetNodes(string msbuildLocation,
238
ConcurrentQueue<
NodeContext
> nodeContexts = new();
381
NodeContext
nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (7)
88
private Dictionary<HandshakeOptions,
NodeContext
> _nodeContexts;
198
List<
NodeContext
> contextsToShutDown;
202
contextsToShutDown = new List<
NodeContext
>(_nodeContexts.Values);
228
_nodeContexts = new Dictionary<HandshakeOptions,
NodeContext
>();
502
NodeContext
context = _nodeContexts[hostContext];
555
IList<
NodeContext
> nodeContexts = GetNodes(
571
private void NodeContextCreated(
NodeContext
context)