示例#1
0
 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);
     }
 }
示例#2
0
 static void Main(string[] args)
 {
     HostManager.Start();
 }