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.

MqttCommunicationAdapterFactory.cs 539 B

1234567891011121314151617181920
  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. }