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

13 行
359 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. Task SerializeAsync(MqttBasePacket mqttPacket, IMqttCommunicationChannel destination);
  9. Task<MqttBasePacket> DeserializeAsync(IMqttCommunicationChannel source);
  10. }
  11. }