src/Shared/INodePacketHandler.cs (10 lines of code) (raw):

// Copyright (c) Microsoft. All rights reserved. // Licensed under the MIT license. See LICENSE file in the project root for full license information. //----------------------------------------------------------------------- // </copyright> // <summary>Interface for node packet handlers.</summary> //-----------------------------------------------------------------------using System; using System.Collections.Generic; using System.Text; namespace Microsoft.Build.BackEnd { /// <summary> /// Objects which wish to receive packets from the NodePacketRouter must implement this interface. /// </summary> internal interface INodePacketHandler { /// <summary> /// This method is invoked by the NodePacketRouter when a packet is received and is intended for /// this recipient. /// </summary> /// <param name="node">The node from which the packet was received.</param> /// <param name="packet">The packet.</param> void PacketReceived(int node, INodePacket packet); } }