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

ReceivedMqttPacket.cs 451 B

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