mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
22 lines
561 B
C#
22 lines
561 B
C#
using MQTTnet.Adapter;
|
|
using MQTTnet.Client;
|
|
using MQTTnet.Diagnostics;
|
|
|
|
namespace MQTTnet.Core.Tests
|
|
{
|
|
public class TestMqttCommunicationAdapterFactory : IMqttClientAdapterFactory
|
|
{
|
|
private readonly IMqttChannelAdapter _adapter;
|
|
|
|
public TestMqttCommunicationAdapterFactory(IMqttChannelAdapter adapter)
|
|
{
|
|
_adapter = adapter;
|
|
}
|
|
|
|
public IMqttChannelAdapter CreateClientAdapter(IMqttClientChannelOptions options, IMqttNetLogger logger)
|
|
{
|
|
return _adapter;
|
|
}
|
|
}
|
|
}
|