Program.cs 926 B

12345678910111213141516171819202122232425262728293031
  1. using Agile.Config.Client;
  2. using Microsoft.AspNetCore.Hosting;
  3. using Microsoft.Extensions.Configuration;
  4. using Microsoft.Extensions.Hosting;
  5. using Microsoft.Extensions.Logging;
  6. using System;
  7. using System.Collections.Generic;
  8. using System.Linq;
  9. using System.Threading.Tasks;
  10. namespace XYY.API.Tracking
  11. {
  12. public class Program
  13. {
  14. public static void Main(string[] args)
  15. {
  16. CreateHostBuilder(args).Build().Run();
  17. }
  18. public static IHostBuilder CreateHostBuilder(string[] args) =>
  19. Host.CreateDefaultBuilder(args)
  20. .ConfigureWebHostDefaults(webBuilder =>
  21. {
  22. webBuilder.UseStartup<Startup>();
  23. }).ConfigureAppConfiguration((context, config) =>
  24. {
  25. //ʹÓÃAddAgileConfigÅäÖÃÒ»¸öеÄIConfigurationSource
  26. config.AddAgileConfig();
  27. });
  28. }
  29. }