You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
447 B

  1. using System;
  2. using System.IO;
  3. namespace MQTTnet.Adapter
  4. {
  5. public class ReceivedMqttPacket : IDisposable
  6. {
  7. public ReceivedMqttPacket(byte fixedHeader, MemoryStream body)
  8. {
  9. FixedHeader = fixedHeader;
  10. Body = body;
  11. }
  12. public byte FixedHeader { get; }
  13. public MemoryStream Body { get; }
  14. public void Dispose()
  15. {
  16. Body?.Dispose();
  17. }
  18. }
  19. }