Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

MqttClientPublishPacketContext.cs 490 B

12345678910111213141516171819
  1. using System;
  2. using MQTTnet.Core.Packets;
  3. namespace MQTTnet.Core.Server
  4. {
  5. public sealed class MqttClientPublishPacketContext
  6. {
  7. public MqttClientPublishPacketContext(MqttPublishPacket publishPacket)
  8. {
  9. PublishPacket = publishPacket ?? throw new ArgumentNullException(nameof(publishPacket));
  10. }
  11. public MqttPublishPacket PublishPacket { get; }
  12. public int SendTries { get; set; }
  13. public bool IsSent { get; set; }
  14. }
  15. }