Refactor .NET Standard projects

This commit is contained in:
Christian Kratky
2017-07-12 19:56:57 +02:00
parent 35344b27c5
commit d0e8a0c4e5
7 changed files with 13 additions and 13 deletions
@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using MQTTnet.Core.Adapter;
using MQTTnet.Core.Server;
using MQTTnet.Implementations;
namespace MQTTnet
{
public class MqttServerFactory
{
public MqttServer CreateMqttServer(MqttServerOptions options)
{
if (options == null) throw new ArgumentNullException(nameof(options));
return new MqttServer(options, new List<IMqttServerAdapter> { new MqttServerAdapter() });
}
}
}