using Microsoft.AspNetCore; using Microsoft.AspNetCore.Hosting; 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) .UseStartup() .Build(); } }