Exemple #1
0
 /// <summary>
 ///     根据topicName进行订阅消息队列事件
 /// </summary>
 /// <param name="topicNames"></param>
 public void Init(params string[] topicNames)
 {
     foreach (var topicName in topicNames)
     {
         _messageQueueManager.AddHander(topicName, OnMqttDataChanged);
     }
 }