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.
|
- using Microsoft.AspNetCore;
- using Microsoft.AspNetCore.Hosting;
- using MQTTnet.AspNetCore;
-
- namespace MQTTnet.TestApp.AspNetCore2
- {
- public static class Program
- {
- public static void Main(string[] args)
- {
- BuildWebHost(args).Run();
- }
-
- private static IWebHost BuildWebHost(string[] args) =>
- WebHost.CreateDefaultBuilder(args)
- .UseKestrel(o => {
- o.ListenAnyIP(1883, l => l.UseMqtt());
- o.ListenAnyIP(5000); // default http pipeline
- })
- .UseStartup<Startup>()
- .Build();
- }
- }
|