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.
 
 
 
 

21 regels
533 B

  1. using Microsoft.AspNetCore;
  2. using Microsoft.AspNetCore.Hosting;
  3. using MQTTnet.AspNetCore;
  4. namespace MQTTnet.TestApp.AspNetCore2
  5. {
  6. public static class Program
  7. {
  8. public static void Main(string[] args)
  9. {
  10. BuildWebHost(args).Run();
  11. }
  12. private static IWebHost BuildWebHost(string[] args) =>
  13. WebHost.CreateDefaultBuilder(args)
  14. .UseKestrel(o => o.ListenAnyIP(1883, l => l.UseMqtt()))
  15. .UseStartup<Startup>()
  16. .Build();
  17. }
  18. }