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

ReceivedMqttPacket.cs 490 B

12345678910111213141516171819
  1. using System;
  2. using System.IO;
  3. using MQTTnet.Core.Packets;
  4. namespace MQTTnet.Core.Adapter
  5. {
  6. public class ReceivedMqttPacket
  7. {
  8. public ReceivedMqttPacket(MqttPacketHeader header, MemoryStream body)
  9. {
  10. Header = header ?? throw new ArgumentNullException(nameof(header));
  11. Body = body ?? throw new ArgumentNullException(nameof(body));
  12. }
  13. public MqttPacketHeader Header { get; }
  14. public MemoryStream Body { get; }
  15. }
  16. }