選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

MqttClientPublishPacketContext.cs 711 B

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