You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

22 lines
576 B

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