using System.Collections.Generic; namespace MQTTnet.Server { public class MqttUnsubscriptionInterceptorContext { public MqttUnsubscriptionInterceptorContext(string clientId, string topic, IDictionary sessionItems) { ClientId = clientId; Topic = topic; SessionItems = sessionItems; } public string ClientId { get; } public string Topic { 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 AcceptUnsubscription { get; set; } = true; public bool CloseConnection { get; set; } } }