mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-20 11:45:43 +08:00
Extend MqttClientMessageQueueInterceptorContext to expose SubscriptionQualityOfServiceLevel
This commit is contained in:
committed by
Sallin Marc, I212
parent
f1f9924bce
commit
fd789417e7
@@ -1,12 +1,15 @@
|
|||||||
namespace MQTTnet.Server
|
using MQTTnet.Protocol;
|
||||||
|
|
||||||
|
namespace MQTTnet.Server
|
||||||
{
|
{
|
||||||
public class MqttClientMessageQueueInterceptorContext
|
public class MqttClientMessageQueueInterceptorContext
|
||||||
{
|
{
|
||||||
public MqttClientMessageQueueInterceptorContext(string senderClientId, string receiverClientId, MqttApplicationMessage applicationMessage)
|
public MqttClientMessageQueueInterceptorContext(string senderClientId, string receiverClientId, MqttApplicationMessage applicationMessage, MqttQualityOfServiceLevel subscriptionQualityOfServiceLevel)
|
||||||
{
|
{
|
||||||
SenderClientId = senderClientId;
|
SenderClientId = senderClientId;
|
||||||
ReceiverClientId = receiverClientId;
|
ReceiverClientId = receiverClientId;
|
||||||
ApplicationMessage = applicationMessage;
|
ApplicationMessage = applicationMessage;
|
||||||
|
SubscriptionQualityOfServiceLevel = subscriptionQualityOfServiceLevel;
|
||||||
}
|
}
|
||||||
|
|
||||||
public string SenderClientId { get; }
|
public string SenderClientId { get; }
|
||||||
@@ -16,5 +19,7 @@
|
|||||||
public MqttApplicationMessage ApplicationMessage { get; set; }
|
public MqttApplicationMessage ApplicationMessage { get; set; }
|
||||||
|
|
||||||
public bool AcceptEnqueue { get; set; } = true;
|
public bool AcceptEnqueue { get; set; } = true;
|
||||||
|
|
||||||
|
public MqttQualityOfServiceLevel SubscriptionQualityOfServiceLevel { get; set; }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user