Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在控制台应用程序中使用MQTTnet 客户端。在我的用例中,我似乎不需要异步执行,我想通过使用同步执行来简化设计。但是,如果我不得不切换到异步设计,我想避免不得不更改 mqtt 客户端包。
据我所知,MqttClient只有用于连接、发布、断开等方法的异步版本。是否也有客户端方法的同步版本?如果只有方法的异步版本:我可以以某种方式包装异步方法以使它们同步吗?
MqttClient