2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
176
NodeContext nodeContext = new
NodeContext
(0, nodeProcess, nodeStream, factory, terminateNode);
384
NodeContext nodeContext =
new
(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
22 references to NodeContext
Microsoft.Build (22)
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 (10)
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(
239
ConcurrentQueue<
NodeContext
> nodeContexts = new();
384
NodeContext
nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
774
NodeContext
context = (
NodeContext
)state;
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (7)
93
private Dictionary<HandshakeOptions,
NodeContext
> _nodeContexts;
203
List<
NodeContext
> contextsToShutDown;
207
contextsToShutDown = new List<
NodeContext
>(_nodeContexts.Values);
233
_nodeContexts = new Dictionary<HandshakeOptions,
NodeContext
>();
539
NodeContext
context = _nodeContexts[hostContext];
579
IList<
NodeContext
> nodeContexts;
631
private void NodeContextCreated(
NodeContext
context)