Files
MQTTnet/MQTT.NET.Core/Serializer/IMqttPacketSerializer.cs
T
2017-03-19 18:41:29 +01:00

13 lines
351 B
C#

using System.Threading.Tasks;
using MQTTnet.Core.Channel;
using MQTTnet.Core.Packets;
namespace MQTTnet.Core.Serializer
{
public interface IMqttPacketSerializer
{
Task SerializeAsync(MqttBasePacket mqttPacket, IMqttTransportChannel destination);
Task<MqttBasePacket> DeserializeAsync(IMqttTransportChannel source);
}
}