選択できるのは25トピックまでです。 トピックは、先頭が英数字で、英数字とダッシュ('-')を使用した35文字以内のものにしてください。

TestMqttCommunicationAdapterFactory.cs 561 B

123456789101112131415161718192021
  1. using MQTTnet.Adapter;
  2. using MQTTnet.Client;
  3. using MQTTnet.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. }