mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-16 01:03:01 +08:00
16 lines
414 B
C#
16 lines
414 B
C#
using System;
|
|
using MQTTnet.Core.Client;
|
|
using MQTTnet.Implementations;
|
|
|
|
namespace MQTTnet
|
|
{
|
|
public class MqttClientFactory : IMqttClientFactory
|
|
{
|
|
public IMqttClient CreateMqttClient(MqttClientOptions options)
|
|
{
|
|
if (options == null) throw new ArgumentNullException(nameof(options));
|
|
|
|
return new MqttClient(new MqttCommunicationAdapterFactory());
|
|
}
|
|
}
|
|
} |