private void MqttClient_Connected(object sender, MqttClientConnectedEventArgs e) { var topics = TopicEvent?.Invoke(); SubscribeAsync(topics); ConnectEvent?.Invoke(true, null); }
protected virtual void RaiseTopicEvent(TokenEventArgs e) { TopicEvent?.Invoke(this, e); }