mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 17:23:04 +08:00
22 lines
570 B
C#
22 lines
570 B
C#
using MQTTnet.Adapter;
|
|
using MQTTnet.Client.Options;
|
|
using MQTTnet.Diagnostics;
|
|
|
|
namespace MQTTnet.Tests.Mockups
|
|
{
|
|
public class TestMqttCommunicationAdapterFactory : IMqttClientAdapterFactory
|
|
{
|
|
private readonly IMqttChannelAdapter _adapter;
|
|
|
|
public TestMqttCommunicationAdapterFactory(IMqttChannelAdapter adapter)
|
|
{
|
|
_adapter = adapter;
|
|
}
|
|
|
|
public IMqttChannelAdapter CreateClientAdapter(IMqttClientOptions options, IMqttNetChildLogger logger)
|
|
{
|
|
return _adapter;
|
|
}
|
|
}
|
|
}
|