25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
584 B

  1. using MQTTnet.Adapter;
  2. using MQTTnet.Client;
  3. using MQTTnet.Client.Options;
  4. using MQTTnet.Diagnostics;
  5. namespace MQTTnet.Tests
  6. {
  7. public class TestMqttCommunicationAdapterFactory : IMqttClientAdapterFactory
  8. {
  9. private readonly IMqttChannelAdapter _adapter;
  10. public TestMqttCommunicationAdapterFactory(IMqttChannelAdapter adapter)
  11. {
  12. _adapter = adapter;
  13. }
  14. public IMqttChannelAdapter CreateClientAdapter(IMqttClientOptions options, IMqttNetChildLogger logger)
  15. {
  16. return _adapter;
  17. }
  18. }
  19. }