mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
20 lines
490 B
C#
20 lines
490 B
C#
using System;
|
|
using MQTTnet.Core.Packets;
|
|
|
|
namespace MQTTnet.Core.Server
|
|
{
|
|
public sealed class MqttClientPublishPacketContext
|
|
{
|
|
public MqttClientPublishPacketContext(MqttPublishPacket publishPacket)
|
|
{
|
|
PublishPacket = publishPacket ?? throw new ArgumentNullException(nameof(publishPacket));
|
|
}
|
|
|
|
public MqttPublishPacket PublishPacket { get; }
|
|
|
|
public int SendTries { get; set; }
|
|
|
|
public bool IsSent { get; set; }
|
|
}
|
|
}
|