mirror of
https://github.com/dotnet/MQTTnet.git
synced 2026-10-19 19:13:11 +08:00
Fix several bugs
This commit is contained in:
@@ -1,15 +1,12 @@
|
||||
using System;
|
||||
using MQTTnet.Core.Client;
|
||||
using MQTTnet.Core.Client;
|
||||
using MQTTnet.Implementations;
|
||||
|
||||
namespace MQTTnet
|
||||
{
|
||||
public class MqttClientFactory : IMqttClientFactory
|
||||
{
|
||||
public IMqttClient CreateMqttClient(MqttClientOptions options)
|
||||
public IMqttClient CreateMqttClient()
|
||||
{
|
||||
if (options == null) throw new ArgumentNullException(nameof(options));
|
||||
|
||||
return new MqttClient(new MqttCommunicationAdapterFactory());
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user