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

TestMqttCommunicationAdapterFactory.cs 499 B

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