mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
20 lines
545 B
C#
20 lines
545 B
C#
namespace MQTTnet.Server
|
|
{
|
|
public class MqttApplicationMessageInterceptorContext
|
|
{
|
|
public MqttApplicationMessageInterceptorContext(string clientId, MqttApplicationMessage applicationMessage)
|
|
{
|
|
ClientId = clientId;
|
|
ApplicationMessage = applicationMessage;
|
|
}
|
|
|
|
public string ClientId { get; }
|
|
|
|
public MqttApplicationMessage ApplicationMessage { get; set; }
|
|
|
|
public bool AcceptPublish { get; set; } = true;
|
|
|
|
public bool CloseConnection { get; set; }
|
|
}
|
|
}
|