Пример #1
0
        private void MqttClient_Connected(object sender, MqttClientConnectedEventArgs e)
        {
            var topics = TopicEvent?.Invoke();

            SubscribeAsync(topics);
            ConnectEvent?.Invoke(true, null);
        }
Пример #2
0
 protected virtual void RaiseTopicEvent(TokenEventArgs e)
 {
     TopicEvent?.Invoke(this, e);
 }