Files
MQTTnet/Frameworks/MQTTnet.NetCoreApp/MqttServerFactory.cs
T
2017-04-01 21:51:36 +02:00

16 lines
357 B
C#

using System;
using MQTTnet.Core.Server;
namespace MQTTnet
{
public class MqttServerFactory
{
public MqttServer CreateMqttServer(MqttServerOptions options)
{
if (options == null) throw new ArgumentNullException(nameof(options));
return new MqttServer(options, new MqttServerAdapter());
}
}
}