浏览代码

Extend MqttClientMessageQueueInterceptorContext to expose SubscriptionQualityOfServiceLevel

release/3.x.x
Marc Sallin 4 年前
committed by Sallin Marc, I212
父节点
当前提交
fd789417e7
共有 1 个文件被更改,包括 7 次插入2 次删除
  1. +7
    -2
      Source/MQTTnet/Server/MqttClientMessageQueueInterceptorContext.cs

+ 7
- 2
Source/MQTTnet/Server/MqttClientMessageQueueInterceptorContext.cs 查看文件

@@ -1,12 +1,15 @@
namespace MQTTnet.Server
using MQTTnet.Protocol;

namespace MQTTnet.Server
{
public class MqttClientMessageQueueInterceptorContext
{
public MqttClientMessageQueueInterceptorContext(string senderClientId, string receiverClientId, MqttApplicationMessage applicationMessage)
public MqttClientMessageQueueInterceptorContext(string senderClientId, string receiverClientId, MqttApplicationMessage applicationMessage, MqttQualityOfServiceLevel subscriptionQualityOfServiceLevel)
{
SenderClientId = senderClientId;
ReceiverClientId = receiverClientId;
ApplicationMessage = applicationMessage;
SubscriptionQualityOfServiceLevel = subscriptionQualityOfServiceLevel;
}

public string SenderClientId { get; }
@@ -16,5 +19,7 @@
public MqttApplicationMessage ApplicationMessage { get; set; }

public bool AcceptEnqueue { get; set; } = true;

public MqttQualityOfServiceLevel SubscriptionQualityOfServiceLevel { get; set; }
}
}

正在加载...
取消
保存