public async Task HandleApplicationMessageReceivedAsync(MqttApplicationMessageReceivedEventArgs eventArgs) { var args = new PublishEventArgs { Topic = eventArgs.ApplicationMessage.Topic, Payload = eventArgs.ApplicationMessage.ConvertPayloadToString() }; OnPublishedTopic(args); await mqttClient.PingAsync(CancellationToken.None); }