I use the MQTTClient factory to build an IMQTT3Client, but this interface has not the property OnMessage.
Then, I must cast the build return with MQTTClientAgent to access to the OnMessage property.
Note: I use the package CK.MQTT.Client at version 0.18.0