mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-17 01:33:03 +08:00
27 lines
731 B
C#
27 lines
731 B
C#
using MQTTnet.Core.Adapter;
|
|
using MQTTnet.Core.Channel;
|
|
using MQTTnet.Core.Client;
|
|
|
|
namespace MQTTnet.Core.Tests
|
|
{
|
|
public class TestMqttCommunicationAdapterFactory : IMqttCommunicationAdapterFactory
|
|
{
|
|
private readonly IMqttCommunicationAdapter _adapter;
|
|
|
|
public TestMqttCommunicationAdapterFactory(IMqttCommunicationAdapter adapter)
|
|
{
|
|
_adapter = adapter;
|
|
}
|
|
|
|
public IMqttCommunicationAdapter CreateClientCommunicationAdapter(IMqttClientOptions options)
|
|
{
|
|
return _adapter;
|
|
}
|
|
|
|
public IMqttCommunicationAdapter CreateServerCommunicationAdapter(IMqttCommunicationChannel channel)
|
|
{
|
|
return _adapter;
|
|
}
|
|
}
|
|
}
|