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