Program.cs 709 B

12345678910111213141516171819202122232425262728
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using Microsoft.AspNetCore.Builder;
  7. using Microsoft.AspNetCore.Hosting;
  8. namespace Winsoft.GOV.XF.WebApi.WXCore
  9. {
  10. public class Program
  11. {
  12. public static void Main(string[] args)
  13. {
  14. var host = new WebHostBuilder()
  15. .UseKestrel()
  16. .UseUrls("http://*:80")
  17. .UseContentRoot(Directory.GetCurrentDirectory())
  18. .UseIISIntegration()
  19. .UseStartup<Startup>()
  20. .UseApplicationInsights()
  21. .Build();
  22. host.Run();
  23. }
  24. }
  25. }