You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

16 lines
357 B

  1. using System;
  2. using MQTTnet.Core.Server;
  3. namespace MQTTnet
  4. {
  5. public class MqttServerFactory
  6. {
  7. public MqttServer CreateMqttServer(MqttServerOptions options)
  8. {
  9. if (options == null) throw new ArgumentNullException(nameof(options));
  10. return new MqttServer(options, new MqttServerAdapter());
  11. }
  12. }
  13. }