mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
20 lines
483 B
C#
20 lines
483 B
C#
namespace MQTTnet.Server
|
|
{
|
|
public class MqttSubscriptionInterceptorContext
|
|
{
|
|
public MqttSubscriptionInterceptorContext(string clientId, TopicFilter topicFilter)
|
|
{
|
|
ClientId = clientId;
|
|
TopicFilter = topicFilter;
|
|
}
|
|
|
|
public string ClientId { get; }
|
|
|
|
public TopicFilter TopicFilter { get; }
|
|
|
|
public bool AcceptSubscription { get; set; } = true;
|
|
|
|
public bool CloseConnection { get; set; }
|
|
}
|
|
}
|