Program.cs 750 B

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