Files
MQTTnet/Frameworks/MQTTnet.NetStandard/MqttClientFactory.cs
T
Gerardo 870ed00e3c Refactoring
Added almost of the hits. Options modified but must be reviewed completely.
2017-10-19 13:21:06 +02:00

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());
}
}
}