public static void Main(string[] args) { try { do { HostManager.Start(args, builder => { builder .ConfigureLeeliteWebCore() .ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup <Startup>(); }); }); } while (HostManager.Restarting); } catch (Exception ex) { Console.WriteLine(ex.Message); } }
static void Main(string[] args) { HostManager.Start(); }