Add an event to receive all application messages at server level.

This commit is contained in:
Christian Kratky
2017-07-13 20:28:49 +02:00
parent 2ff449b241
commit 98d7bc980c
10 changed files with 110 additions and 14 deletions
@@ -0,0 +1,17 @@
using System;
namespace MQTTnet.Core.Server
{
public sealed class MqttApplicationMessageReceivedEventArgs : EventArgs
{
public MqttApplicationMessageReceivedEventArgs(string clientId, MqttApplicationMessage applicationMessage)
{
ClientId = clientId;
ApplicationMessage = applicationMessage ?? throw new ArgumentNullException(nameof(applicationMessage));
}
public string ClientId { get; }
public MqttApplicationMessage ApplicationMessage { get; }
}
}