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

18 行
506 B

  1. using System;
  2. namespace MQTTnet.Server
  3. {
  4. public class MqttClientSubscribedTopicEventArgs : EventArgs
  5. {
  6. public MqttClientSubscribedTopicEventArgs(string clientId, TopicFilter topicFilter)
  7. {
  8. ClientId = clientId ?? throw new ArgumentNullException(nameof(clientId));
  9. TopicFilter = topicFilter ?? throw new ArgumentNullException(nameof(topicFilter));
  10. }
  11. public string ClientId { get; }
  12. public TopicFilter TopicFilter { get; }
  13. }
  14. }