mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
18 lines
453 B
C#
18 lines
453 B
C#
using MQTTnet.Core.Client;
|
|
using MQTTnet.Implementations;
|
|
|
|
namespace MQTTnet
|
|
{
|
|
public class MqttClientFactory : IMqttClientFactory
|
|
{
|
|
public IMqttClient CreateMqttClient()
|
|
{
|
|
return new MqttClient(new MqttCommunicationAdapterFactory());
|
|
}
|
|
|
|
public IMqttClientManaged CreateMqttManagedClient()
|
|
{
|
|
return new MqttClientManaged(new MqttCommunicationAdapterFactory());
|
|
}
|
|
}
|
|
} |