mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
22 lines
562 B
C#
22 lines
562 B
C#
using System;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttSubscriptionInterceptorContext
|
|
{
|
|
public MqttSubscriptionInterceptorContext(string clientId, TopicFilter topicFilter)
|
|
{
|
|
ClientId = clientId;
|
|
TopicFilter = topicFilter ?? throw new ArgumentNullException(nameof(topicFilter));
|
|
}
|
|
|
|
public string ClientId { get; }
|
|
|
|
public TopicFilter TopicFilter { get; }
|
|
|
|
public bool AcceptSubscription { get; set; } = true;
|
|
|
|
public bool CloseConnection { get; set; }
|
|
}
|
|
}
|