25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

15 lines
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. }