25개 이상의 토픽을 선택하실 수 없습니다.
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- using System;
-
- namespace MQTTnet.Server
- {
- public class MqttSubscriptionInterceptorContext
- {
- public MqttSubscriptionInterceptorContext(string clientId, TopicFilter topicFilter)
- {
- ClientId = clientId;
- TopicFilter = topicFilter ?? throw new ArgumentNullException(nameof(topicFilter));
- }
-
- public string ClientId { get; }
-
- public TopicFilter TopicFilter { get; }
-
- public bool AcceptSubscription { get; set; } = true;
-
- public bool CloseConnection { get; set; }
- }
- }
|