[Server] Add new interceptor before messages are added to a queue.

This commit is contained in:
Christian Kratky
2018-06-04 22:33:13 +02:00
parent 39edd22a9d
commit c88b46783b
7 changed files with 46 additions and 8 deletions
@@ -0,0 +1,20 @@
namespace MQTTnet.Server
{
public class MqttClientMessageQueueInterceptorContext
{
public MqttClientMessageQueueInterceptorContext(string senderClientId, string receiverClientId, MqttApplicationMessage applicationMessage)
{
SenderClientId = senderClientId;
ReceiverClientId = receiverClientId;
ApplicationMessage = applicationMessage;
}
public string SenderClientId { get; }
public string ReceiverClientId { get; }
public MqttApplicationMessage ApplicationMessage { get; set; }
public bool AcceptEnqueue { get; set; } = true;
}
}