1 interface inheriting from INodePacketFactory
Microsoft.Build (1)
BackEnd\Components\Communications\INodeManager.cs (1)
15
INodePacketFactory
9 implementations of INodePacketFactory
Microsoft.Build (8)
BackEnd\Client\MSBuildClientPacketPump.cs (1)
17
internal sealed class MSBuildClientPacketPump : INodePacketHandler,
INodePacketFactory
, IDisposable
BackEnd\Components\Communications\NodeProviderInProc.cs (1)
24
internal class NodeProviderInProc : INodeProvider,
INodePacketFactory
, IDisposable
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (1)
21
internal class NodeProviderOutOfProcTaskHost : NodeProviderOutOfProcBase, INodeProvider,
INodePacketFactory
, INodePacketHandler
BackEnd\Node\InProcNode.cs (1)
24
internal class InProcNode : INode,
INodePacketFactory
BackEnd\Node\OutOfProcNode.cs (1)
30
public class OutOfProcNode : INode, IBuildComponentHost,
INodePacketFactory
, INodePacketHandler
BackEnd\Node\OutOfProcServerNode.cs (1)
25
public sealed class OutOfProcServerNode : INode,
INodePacketFactory
, INodePacketHandler
Instance\TaskFactories\TaskHostTask.cs (1)
27
internal class TaskHostTask : IGeneratedTask, ICancelableTask,
INodePacketFactory
, INodePacketHandler
NodePacketFactory.cs (1)
14
internal class NodePacketFactory :
INodePacketFactory
Microsoft.Build.Engine.UnitTests (1)
BackEnd\NodeEndpointInProc_Tests.cs (1)
23
private sealed class MockHost : IBuildComponentHost,
INodePacketFactory
51 references to INodePacketFactory
Microsoft.Build (51)
BackEnd\Components\Communications\INodeProvider.cs (1)
71
IList<NodeInfo> CreateNodes(int nextNodeId,
INodePacketFactory
packetFactory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate);
BackEnd\Components\Communications\NodeEndpointInProc.cs (3)
57
private
INodePacketFactory
_packetFactory;
163
public void Listen(
INodePacketFactory
factory)
181
public void Connect(
INodePacketFactory
factory)
BackEnd\Components\Communications\NodeProviderInProc.cs (5)
61
private
INodePacketFactory
_packetFactory;
191
public IList<NodeInfo> CreateNodes(int nextNodeId,
INodePacketFactory
factory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate)
218
private bool CreateNode(int nodeId,
INodePacketFactory
factory, NodeConfiguration configuration)
301
INodePacketFactory
factory = _packetFactory;
361
private bool InstantiateNode(
INodePacketFactory
factory)
BackEnd\Components\Communications\NodeProviderOutOfProc.cs (1)
79
public IList<NodeInfo> CreateNodes(int nextNodeId,
INodePacketFactory
factory, Func<NodeInfo, NodeConfiguration> configurationFactory, int numberOfNodesToCreate)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (4)
147
INodePacketFactory
factory = new NodePacketFactory();
189
INodePacketFactory
factory,
545
private
INodePacketFactory
_packetFactory;
608
INodePacketFactory
factory, NodeContextTerminateDelegate terminateDelegate)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (10)
93
private IDictionary<int,
INodePacketFactory
> _nodeIdToPacketFactory;
164
public 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);
280
if (_nodeIdToPacketFactory.TryGetValue(nodeId, out
INodePacketFactory
nodePacketFactory))
297
if (_nodeIdToPacketFactory.TryGetValue(nodeId, out
INodePacketFactory
nodePacketFactory))
487
internal bool AcquireAndSetUpHost(HandshakeOptions hostContext,
INodePacketFactory
factory, INodePacketHandler handler, TaskHostConfiguration configuration)
528
internal 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);
319
void
INodePacketFactory
.RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler)
328
void
INodePacketFactory
.UnregisterPacketHandler(NodePacketType packetType)
339
void
INodePacketFactory
.DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
349
void
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);
190
void
INodePacketFactory
.RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler)
199
void
INodePacketFactory
.UnregisterPacketHandler(NodePacketType packetType)
210
void
INodePacketFactory
.DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
220
void
INodePacketFactory
.RoutePacket(int nodeId, INodePacket packet)
INodeEndpoint.cs (2)
87
void Listen(
INodePacketFactory
factory);
93
void 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)
93
private
INodePacketFactory
_packetFactory;
152
public void Listen(
INodePacketFactory
factory)
165
public void Connect(
INodePacketFactory
factory)