您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 

21 行
539 B

  1. using MQTTnet.Core.Adapter;
  2. using MQTTnet.Core.Client;
  3. namespace MQTTnet.Core.Tests
  4. {
  5. public class MqttCommunicationAdapterFactory : IMqttCommunicationAdapterFactory
  6. {
  7. private readonly IMqttCommunicationAdapter _adapter;
  8. public MqttCommunicationAdapterFactory(IMqttCommunicationAdapter adapter)
  9. {
  10. _adapter = adapter;
  11. }
  12. public IMqttCommunicationAdapter CreateMqttCommunicationAdapter(MqttClientQueuedOptions options)
  13. {
  14. return _adapter;
  15. }
  16. }
  17. }