Files
MQTTnet/Source/MQTTnet/Server/MqttSubscriptionInterceptorContext.cs
T

29 lines
964 B
C#

using System.Collections.Generic;
namespace MQTTnet.Server
{
public sealed class MqttSubscriptionInterceptorContext
{
/// <summary>
/// Gets the client identifier.
/// Hint: This identifier needs to be unique over all used clients / devices on the broker to avoid connection issues.
/// </summary>
public string ClientId { get; internal set; }
/// <summary>
/// Gets or sets the topic filter.
/// The topic filter can contain topics and wildcards.
/// </summary>
public MqttTopicFilter TopicFilter { get; set; }
/// <summary>
/// Gets or sets a key/value collection that can be used to share data within the scope of this session.
/// </summary>
public IDictionary<object, object> SessionItems { get; internal set; }
public bool AcceptSubscription { get; set; } = true;
public bool CloseConnection { get; set; }
}
}