public static void Subscribe(this MysoftMqttClient client, IMqttTopic topic, MqttQosLevel qos) { client.Subscribe(topic.Build(), qos); }
public TopicSubscriber(IMqttTopic topic, MqttQosLevel qos = MqttQosLevel.AtMostOnce, bool shared = false) : this(topic.Build(), qos, shared) { }
public static string Build(this IMqttTopic topic, params IMqttTopic[] topics) { return(topic.Concat(topics).Build()); }
public MqttTopicBuilder With(IMqttTopic topic) { _topics.Add(topic); return(this); }
public static IEnumerable <IMqttTopic> Concat(this IMqttTopic topic, params IMqttTopic[] topics) { return(new List <IMqttTopic> { topic }.Union(topics)); }