mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
28 lines
830 B
C#
28 lines
830 B
C#
using System.Collections.Generic;
|
|
|
|
namespace MQTTnet.Server
|
|
{
|
|
public class MqttSubscriptionInterceptorContext
|
|
{
|
|
public MqttSubscriptionInterceptorContext(string clientId, TopicFilter topicFilter, IDictionary<object, object> sessionItems)
|
|
{
|
|
ClientId = clientId;
|
|
TopicFilter = topicFilter;
|
|
SessionItems = sessionItems;
|
|
}
|
|
|
|
public string ClientId { get; }
|
|
|
|
public TopicFilter 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; }
|
|
|
|
public bool AcceptSubscription { get; set; } = true;
|
|
|
|
public bool CloseConnection { get; set; }
|
|
}
|
|
}
|