您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

15 行
418 B

  1. using System.Threading.Tasks;
  2. using MQTTnet.Core.Channel;
  3. using MQTTnet.Core.Packets;
  4. namespace MQTTnet.Core.Serializer
  5. {
  6. public interface IMqttPacketSerializer
  7. {
  8. MqttProtocolVersion ProtocolVersion { get; set; }
  9. Task SerializeAsync(MqttBasePacket mqttPacket, IMqttCommunicationChannel destination);
  10. Task<MqttBasePacket> DeserializeAsync(IMqttCommunicationChannel source);
  11. }
  12. }