您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

20 行
488 B

  1. namespace MQTTnet.Core.Server
  2. {
  3. public class MqttSubscriptionInterceptorContext
  4. {
  5. public MqttSubscriptionInterceptorContext(string clientId, TopicFilter topicFilter)
  6. {
  7. ClientId = clientId;
  8. TopicFilter = topicFilter;
  9. }
  10. public string ClientId { get; }
  11. public TopicFilter TopicFilter { get; }
  12. public bool AcceptSubscription { get; set; } = true;
  13. public bool CloseConnection { get; set; }
  14. }
  15. }