189 references to NodePacketType
Microsoft.Build (174)
BackEnd\BuildManager\BuildManager.cs (31)
596_nodeManager!.RegisterPacketHandler(NodePacketType.BuildRequestBlocker, BuildRequestBlocker.FactoryForDeserialization, this); 597_nodeManager.RegisterPacketHandler(NodePacketType.BuildRequestConfiguration, BuildRequestConfiguration.FactoryForDeserialization, this); 598_nodeManager.RegisterPacketHandler(NodePacketType.BuildRequestConfigurationResponse, BuildRequestConfigurationResponse.FactoryForDeserialization, this); 599_nodeManager.RegisterPacketHandler(NodePacketType.BuildResult, BuildResult.FactoryForDeserialization, this); 600_nodeManager.RegisterPacketHandler(NodePacketType.FileAccessReport, FileAccessReport.FactoryForDeserialization, this); 601_nodeManager.RegisterPacketHandler(NodePacketType.NodeShutdown, NodeShutdown.FactoryForDeserialization, this); 602_nodeManager.RegisterPacketHandler(NodePacketType.ProcessReport, ProcessReport.FactoryForDeserialization, this); 603_nodeManager.RegisterPacketHandler(NodePacketType.ResolveSdkRequest, SdkResolverRequest.FactoryForDeserialization, SdkResolverService as INodePacketHandler); 604_nodeManager.RegisterPacketHandler(NodePacketType.ResourceRequest, ResourceRequest.FactoryForDeserialization, this); 633_nodeManager!.RegisterPacketHandler(NodePacketType.LogMessage, LogMessagePacket.FactoryForDeserialization, loggingService as INodePacketHandler); 1595if (_shuttingDown && packet.Type != NodePacketType.NodeShutdown) 1603case NodePacketType.BuildRequestBlocker: 1604BuildRequestBlocker blocker = ExpectPacketType<BuildRequestBlocker>(packet, NodePacketType.BuildRequestBlocker); 1608case NodePacketType.BuildRequestConfiguration: 1609BuildRequestConfiguration requestConfiguration = ExpectPacketType<BuildRequestConfiguration>(packet, NodePacketType.BuildRequestConfiguration); 1613case NodePacketType.BuildResult: 1614BuildResult result = ExpectPacketType<BuildResult>(packet, NodePacketType.BuildResult); 1618case NodePacketType.ResourceRequest: 1619ResourceRequest request = ExpectPacketType<ResourceRequest>(packet, NodePacketType.ResourceRequest); 1623case NodePacketType.NodeShutdown: 1625NodeShutdown shutdownPacket = ExpectPacketType<NodeShutdown>(packet, NodePacketType.NodeShutdown); 1629case NodePacketType.FileAccessReport: 1630FileAccessReport fileAccessReport = ExpectPacketType<FileAccessReport>(packet, NodePacketType.FileAccessReport); 1634case NodePacketType.ProcessReport: 1635ProcessReport processReport = ExpectPacketType<ProcessReport>(packet, NodePacketType.ProcessReport); 2134_nodeManager?.UnregisterPacketHandler(NodePacketType.BuildRequestBlocker); 2135_nodeManager?.UnregisterPacketHandler(NodePacketType.BuildRequestConfiguration); 2136_nodeManager?.UnregisterPacketHandler(NodePacketType.BuildRequestConfigurationResponse); 2137_nodeManager?.UnregisterPacketHandler(NodePacketType.BuildResult); 2138_nodeManager?.UnregisterPacketHandler(NodePacketType.NodeShutdown); 3072private static I ExpectPacketType<I>(INodePacket packet, NodePacketType expectedType) where I : class, INodePacket
BackEnd\Client\MSBuildClient.cs (4)
326packetPump.RegisterPacketHandler(NodePacketType.ServerNodeConsoleWrite, ServerNodeConsoleWrite.FactoryForDeserialization, packetPump); 327packetPump.RegisterPacketHandler(NodePacketType.ServerNodeBuildResult, ServerNodeBuildResult.FactoryForDeserialization, packetPump); 573case NodePacketType.ServerNodeConsoleWrite: 579case NodePacketType.ServerNodeBuildResult:
BackEnd\Client\MSBuildClientPacketPump.cs (7)
101public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 110public void UnregisterPacketHandler(NodePacketType packetType) 121public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 255NodePacketType packetType = (NodePacketType)Enum.ToObject(typeof(NodePacketType), headerByte[0]); 287if (packetType == NodePacketType.ServerNodeBuildResult)
BackEnd\Components\BuildRequestEngine\BuildRequestConfigurationResponse.cs (2)
72public NodePacketType Type => NodePacketType.BuildRequestConfigurationResponse;
BackEnd\Components\Communications\NodeManager.cs (5)
228public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 237public void UnregisterPacketHandler(NodePacketType packetType) 248public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 250if (packetType == NodePacketType.NodeShutdown) 265if (packet.Type == NodePacketType.NodeShutdown)
BackEnd\Components\Communications\NodeProviderInProc.cs (4)
270public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 279public void UnregisterPacketHandler(NodePacketType packetType) 288public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 309if (packet.Type == NodePacketType.NodeShutdown)
BackEnd\Components\Communications\NodeProviderOutOfProcBase.cs (5)
965private bool ProcessBodyBytesRead(int bytesRead, int packetLength, NodePacketType packetType) 977private bool ReadAndRoutePacket(NodePacketType packetType, byte[] packetData, int packetLength) 1005NodePacketType packetType = (NodePacketType)_headerByte[0]; 1045if (packetType != NodePacketType.NodeShutdown)
BackEnd\Components\Communications\NodeProviderOutOfProcTaskHost.cs (7)
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); 258public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 267public void UnregisterPacketHandler(NodePacketType packetType) 278public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 325ErrorUtilities.VerifyThrow(packet.Type == NodePacketType.NodeShutdown, "We should only ever handle packets of type NodeShutdown -- everything else should only come in when there's an active task");
BackEnd\Components\Communications\TaskHostNodeManager.cs (3)
127public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 136public void UnregisterPacketHandler(NodePacketType packetType) 147public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
BackEnd\Components\FileAccesses\FileAccessReport.cs (2)
18public NodePacketType Type => NodePacketType.FileAccessReport;
BackEnd\Components\FileAccesses\ProcessReport.cs (2)
18public NodePacketType Type => NodePacketType.ProcessReport;
BackEnd\Components\Logging\LoggingService.cs (2)
966if (packet.Type != NodePacketType.LogMessage) 968ErrorUtilities.ThrowInternalError("Expected packet type \"{0}\" but instead got packet type \"{1}\".", nameof(NodePacketType.LogMessage), packet.Type.ToString());
BackEnd\Components\SdkResolution\OutOfProcNodeSdkResolverService.cs (1)
60case NodePacketType.ResolveSdkResponse:
BackEnd\Components\SdkResolution\SdkResolverRequest.cs (2)
67public NodePacketType Type => NodePacketType.ResolveSdkRequest;
BackEnd\Components\SdkResolution\SdkResult.cs (2)
97public NodePacketType Type => NodePacketType.ResolveSdkResponse;
BackEnd\Node\InProcNode.cs (10)
203public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 211public void UnregisterPacketHandler(NodePacketType packetType) 219public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 372case NodePacketType.BuildRequest: 376case NodePacketType.BuildRequestConfiguration: 380case NodePacketType.BuildRequestConfigurationResponse: 384case NodePacketType.BuildRequestUnblocker: 388case NodePacketType.NodeConfiguration: 392case NodePacketType.NodeBuildComplete: 396case NodePacketType.ResourceResponse:
BackEnd\Node\NodeConfiguration.cs (2)
144public NodePacketType Type 148{ return NodePacketType.NodeConfiguration; }
BackEnd\Node\OutOfProcNode.cs (18)
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) 618case NodePacketType.BuildRequest: 622case NodePacketType.BuildRequestConfiguration: 626case NodePacketType.BuildRequestConfigurationResponse: 630case NodePacketType.BuildRequestUnblocker: 634case NodePacketType.ResourceResponse: 638case NodePacketType.NodeConfiguration: 642case NodePacketType.NodeBuildComplete:
BackEnd\Node\OutOfProcServerNode.cs (9)
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) 300case NodePacketType.ServerNodeBuildCommand: 303case NodePacketType.NodeBuildComplete: 306case NodePacketType.ServerNodeBuildCancel:
BackEnd\Node\ServerNodeBuildCancel.cs (2)
8public NodePacketType Type => NodePacketType.ServerNodeBuildCancel;
BackEnd\Node\ServerNodeBuildCommand.cs (2)
32public NodePacketType Type => NodePacketType.ServerNodeBuildCommand;
BackEnd\Node\ServerNodeBuildResult.cs (3)
13/// This has to be in sync with <see cref="NodePacketType.ServerNodeBuildResult" /> 15public NodePacketType Type => NodePacketType.ServerNodeBuildResult;
BackEnd\Node\ServerNodeConsoleWrite.cs (2)
14public NodePacketType Type => NodePacketType.ServerNodeConsoleWrite;
BackEnd\Shared\BuildRequest.cs (2)
317public NodePacketType Type 321{ return NodePacketType.BuildRequest; }
BackEnd\Shared\BuildRequestBlocker.cs (2)
142public NodePacketType Type 146{ return NodePacketType.BuildRequestBlocker; }
BackEnd\Shared\BuildRequestConfiguration.cs (2)
581public NodePacketType Type => NodePacketType.BuildRequestConfiguration;
BackEnd\Shared\BuildRequestUnblocker.cs (2)
73public NodePacketType Type 77{ return NodePacketType.BuildRequestUnblocker; }
BackEnd\Shared\BuildResult.cs (2)
429NodePacketType INodePacket.Type 433{ return NodePacketType.BuildResult; }
BackEnd\Shared\ResourceRequest.cs (2)
68public NodePacketType Type => NodePacketType.ResourceRequest;
BackEnd\Shared\ResourceResponse.cs (2)
43public NodePacketType Type => NodePacketType.ResourceResponse;
INodePacket.cs (1)
239NodePacketType Type
INodePacketFactory.cs (3)
29void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler); 35void UnregisterPacketHandler(NodePacketType packetType); 43void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator);
Instance\TaskFactories\TaskHostTask.cs (9)
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); 350public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 359public void UnregisterPacketHandler(NodePacketType packetType) 370public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 416case NodePacketType.TaskHostTaskComplete: 420case NodePacketType.NodeShutdown: 424case NodePacketType.LogMessage:
LogMessagePacketBase.cs (2)
369public NodePacketType Type 371get { return NodePacketType.LogMessage; }
NodeBuildComplete.cs (2)
51public NodePacketType Type 55{ return NodePacketType.NodeBuildComplete; }
NodeEndpointOutOfProcBase.cs (3)
596NodePacketType packetType = (NodePacketType)Enum.ToObject(typeof(NodePacketType), headerByte[0]);
NodePacketFactory.cs (5)
19private Dictionary<NodePacketType, PacketFactoryRecord> _packetFactories; 26_packetFactories = new Dictionary<NodePacketType, PacketFactoryRecord>(); 34public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 42public void UnregisterPacketHandler(NodePacketType packetType) 50public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator)
NodeShutdown.cs (2)
77public NodePacketType Type 79get { return NodePacketType.NodeShutdown; }
TaskHostConfiguration.cs (2)
374public NodePacketType Type 378{ return NodePacketType.TaskHostConfiguration; }
TaskHostTaskCancelled.cs (2)
24public NodePacketType Type 26get { return NodePacketType.TaskHostTaskCancelled; }
TaskHostTaskComplete.cs (2)
218public NodePacketType Type 220get { return NodePacketType.TaskHostTaskComplete; }
Microsoft.Build.Engine.UnitTests (15)
BackEnd\BuildRequest_Tests.cs (2)
84Assert.Equal(NodePacketType.BuildRequest, request.Type); 120Assert.Equal(NodePacketType.BuildRequest, request.Type);
BackEnd\BuildRequestConfiguration_Tests.cs (2)
198Assert.Equal(NodePacketType.BuildRequestConfiguration, config1.Type); 250Assert.Equal(NodePacketType.BuildRequestConfiguration, config.Type);
BackEnd\BuildRequestConfigurationResponse_Tests.cs (1)
80Assert.Equal(NodePacketType.BuildRequestConfigurationResponse, response.Type);
BackEnd\BuildResult_Tests.cs (2)
119Assert.Equal(NodePacketType.BuildResult, ((INodePacket)result).Type); 326Assert.Equal(NodePacketType.BuildResult, (result as INodePacket).Type);
BackEnd\LoggingService_Tests.cs (2)
1511public NodePacketType Type 1515return NodePacketType.BuildRequest;
BackEnd\MockHost.cs (1)
224public INodePacket DeserializePacket(NodePacketType type, byte[] serializedPacket)
BackEnd\NodeEndpointInProc_Tests.cs (4)
94public void RegisterPacketHandler(NodePacketType packetType, NodePacketFactoryMethod factory, INodePacketHandler handler) 99public void UnregisterPacketHandler(NodePacketType packetType) 104public void DeserializeAndRoutePacket(int nodeId, NodePacketType packetType, ITranslator translator) 131public NodePacketType Type
BackEnd\NodePackets_Tests.cs (1)
360Assert.Equal(NodePacketType.LogMessage, packet.Type);