private static MqttTopicFilterBuilder GetTopicBuilder(string[] topics)
        {
            var topicBuilder = new MqttTopicFilterBuilder();

            topics.ToList().ForEach(topic =>
            {
                topicBuilder.WithTopic(topic);
            });
            return(topicBuilder);
        }
        public MqttClientService(IMqttClient mqttClient, IMqttClientOptions options, string[] topics)
        {
            _mqttClient = mqttClient;
            _options    = options;
            MqttTopicFilterBuilder topicFilterBuilder = new MqttTopicFilterBuilder();

            for (int i = 0; i < topics.Length; i++)
            {
                topicFilterBuilder.WithTopic(topics[i]);
            }
            _topicFilter = topicFilterBuilder.Build();
        }