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.
 
 
 
 

21 lines
499 B

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