mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
15 lines
418 B
C#
15 lines
418 B
C#
using System.Threading.Tasks;
|
|
using MQTTnet.Core.Channel;
|
|
using MQTTnet.Core.Packets;
|
|
|
|
namespace MQTTnet.Core.Serializer
|
|
{
|
|
public interface IMqttPacketSerializer
|
|
{
|
|
MqttProtocolVersion ProtocolVersion { get; set; }
|
|
|
|
Task SerializeAsync(MqttBasePacket mqttPacket, IMqttCommunicationChannel destination);
|
|
|
|
Task<MqttBasePacket> DeserializeAsync(IMqttCommunicationChannel source);
|
|
}
|
|
} |