2 instantiations of NodeContext
Microsoft.Build (2)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (2)
178
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)
76
internal delegate void NodeContextCreatedDelegate(
NodeContext
context);
98
protected void SendData(
NodeContext
context, INodePacket packet)
109
protected void ShutdownConnectedNodes(List<
NodeContext
> contextsToShutDown, bool enableReuse)
123
foreach (
NodeContext
nodeContext in contextsToShutDown)
178
NodeContext
nodeContext = new NodeContext(0, nodeProcess, nodeStream, factory, terminateNode);
188
protected IList<
NodeContext
> GetNodes(string msbuildLocation,
240
ConcurrentQueue<
NodeContext
> nodeContexts = new();
384
NodeContext
nodeContext = new(nodeId, nodeToReuse, nodeStream, factory, terminateNode);
746
NodeContext
context = (
NodeContext
)state;
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)