1 interface inheriting from INodePacketFactory
Microsoft.Build (1)
BackEnd\Components\Communications\INodeManager.cs (1)
15INodePacketFactory
9 implementations of INodePacketFactory
Microsoft.Build (8)
BackEnd\Client\MSBuildClientPacketPump.cs (1)
17internal sealed class MSBuildClientPacketPump : INodePacketHandler, INodePacketFactory, IDisposable
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
24internal class NodeProviderInProc : INodeProvider, INodePacketFactory, IDisposable
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
21internal class NodeProviderOutOfProcTaskHost : NodeProviderOutOfProcBase, INodeProvider, INodePacketFactory, INodePacketHandler
BackEnd\Node\InProcNode.cs (1)
24internal class InProcNode : INode, INodePacketFactory
BackEnd\Node\OutOfProcNode.cs (1)
30public class OutOfProcNode : INode, IBuildComponentHost, INodePacketFactory, INodePacketHandler
BackEnd\Node\OutOfProcServerNode.cs (1)
25public sealed class OutOfProcServerNode : INode, INodePacketFactory, INodePacketHandler
Instance\TaskFactories\TaskHostTask.cs (1)
27internal class TaskHostTask : IGeneratedTask, ICancelableTask, INodePacketFactory, INodePacketHandler
NodePacketFactory.cs (1)
14internal class NodePacketFactory : INodePacketFactory
Microsoft.Build.Engine.UnitTests (1)
BackEnd\NodeEndpointInProc_Tests.cs (1)
23private sealed class MockHost : IBuildComponentHost, INodePacketFactory
51 references to INodePacketFactory
Microsoft.Build (51)
BackEnd\Components\Communications\INodeProvider.cs (1)
71IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory packetFactory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate);
BackEnd\Components\Communications\NodeEndpointInProc.cs (3)
57private INodePacketFactory _packetFactory; 163public void Listen(INodePacketFactory factory) 181public void Connect(INodePacketFactory factory)
BackEnd\Components\Communications\NodeProviderInProc.cs (5)
61private INodePacketFactory _packetFactory; 191public IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory factory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate) 218private bool CreateNode(int nodeId, INodePacketFactory factory, NodeConfiguration configuration) 301INodePacketFactory factory = _packetFactory; 361private bool InstantiateNode(INodePacketFactory factory)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
79public IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory factory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
147INodePacketFactory factory = new NodePacketFactory(); 189INodePacketFactory factory, 545private INodePacketFactory _packetFactory; 608INodePacketFactory factory, NodeContextTerminateDelegate terminateDelegate)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (10)
93private IDictionary<int, INodePacketFactory> _nodeIdToPacketFactory; 164public IList<NodeInfo> CreateNodes(int nextNodeId, INodePacketFactory packetFactory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate) 229_nodeIdToPacketFactory = new Dictionary<int, INodePacketFactory>(); 236(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.LogMessage, LogMessagePacket.FactoryForDeserialization, this); 237(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.TaskHostTaskComplete, TaskHostTaskComplete.FactoryForDeserialization, this); 238(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.NodeShutdown, NodeShutdown.FactoryForDeserialization, this); 280if (_nodeIdToPacketFactory.TryGetValue(nodeId, out INodePacketFactory nodePacketFactory)) 297if (_nodeIdToPacketFactory.TryGetValue(nodeId, out INodePacketFactory nodePacketFactory)) 487internal bool AcquireAndSetUpHost(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration) 528internal bool CreateNode(HandshakeOptions hostContext, INodePacketFactory factory, INodePacketHandler handler, TaskHostConfiguration configuration)
BackEnd\Node\OutOfProcNode.cs (12)
177(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.BuildRequest, BuildRequest.FactoryForDeserialization, this); 178(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.BuildRequestConfiguration, BuildRequestConfiguration.FactoryForDeserialization, this); 179(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.BuildRequestConfigurationResponse, BuildRequestConfigurationResponse.FactoryForDeserialization, this); 180(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.BuildRequestUnblocker, BuildRequestUnblocker.FactoryForDeserialization, this); 181(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.NodeConfiguration, NodeConfiguration.FactoryForDeserialization, this); 182(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.NodeBuildComplete, NodeBuildComplete.FactoryForDeserialization, this); 183(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.ResourceResponse, ResourceResponse.FactoryForDeserialization, this); 184(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.ResolveSdkResponse, SdkResult.FactoryForDeserialization, _sdkResolverService as INodePacketHandler); 319void INodePacketFactory.RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 328void INodePacketFactory.UnregisterPacketHandler(NodePacketType packetType) 339void INodePacketFactory.DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 349void INodePacketFactory.RoutePacket(int nodeId, INodePacket packet)
BackEnd\Node\OutOfProcServerNode.cs (7)
89(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.ServerNodeBuildCommand, ServerNodeBuildCommand.FactoryForDeserialization, this); 90(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.NodeBuildComplete, NodeBuildComplete.FactoryForDeserialization, this); 91(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.ServerNodeBuildCancel, ServerNodeBuildCancel.FactoryForDeserialization, this); 190void INodePacketFactory.RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 199void INodePacketFactory.UnregisterPacketHandler(NodePacketType packetType) 210void INodePacketFactory.DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 220void INodePacketFactory.RoutePacket(int nodeId, INodePacket packet)
INodeEndpoint.cs (2)
87void Listen(INodePacketFactory factory); 93void Connect(INodePacketFactory factory);
Instance\TaskFactories\TaskHostTask.cs (3)
155(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.LogMessage, LogMessagePacket.FactoryForDeserialization, this); 156(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.TaskHostTaskComplete, TaskHostTaskComplete.FactoryForDeserialization, this); 157(this as INodePacketFactory).RegisterPacketHandler(NodePacketType.NodeShutdown, NodeShutdown.FactoryForDeserialization, this);
NodeEndpointOutOfProcBase.cs (3)
93private INodePacketFactory _packetFactory; 152public void Listen(INodePacketFactory factory) 165public void Connect(INodePacketFactory factory)