using System.Collections.Generic; namespace MQTTnet.Server { public class MqttSubscriptionInterceptorContext { public MqttSubscriptionInterceptorContext(string clientId, MqttTopicFilter topicFilter, IDictionary sessionItems) { ClientId = clientId; TopicFilter = topicFilter; SessionItems = sessionItems; } public string ClientId { get; } public MqttTopicFilter TopicFilter { get; set; } /// /// Gets or sets a key/value collection that can be used to share data within the scope of this session. /// public IDictionary SessionItems { get; } public bool AcceptSubscription { get; set; } = true; public bool CloseConnection { get; set; } } }