Program.cs 837 B

123456789101112131415161718192021222324252627282930
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Linq;
  5. using System.Threading.Tasks;
  6. using FGCS.Core.ViewModels;
  7. using Microsoft.AspNetCore;
  8. using Microsoft.AspNetCore.Hosting;
  9. using Microsoft.Extensions.Configuration;
  10. using Microsoft.Extensions.Logging;
  11. namespace FGCS.Core
  12. {
  13. public class Program
  14. {
  15. /// <summary>
  16. /// 修改http地址
  17. /// </summary>
  18. private static string launchsettings = TOHepler.GetConfig("ConnectionStrings:LuYou");
  19. public static void Main(string[] args)
  20. {
  21. BuildWebHost(args).Run();
  22. }
  23. public static IWebHost BuildWebHost(string[] args) =>
  24. WebHost.CreateDefaultBuilder(args)
  25. .UseStartup<Startup>()
  26. .UseUrls(launchsettings)
  27. .Build();
  28. }
  29. }