Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

29 wiersze
1.1 KiB

  1. using Microsoft.Extensions.Configuration;
  2. namespace HKCardManager
  3. {
  4. internal static class Program
  5. {
  6. /// <summary>
  7. /// The main entry point for the application.
  8. /// </summary>
  9. [STAThread]
  10. static void Main()
  11. {
  12. // To customize application configuration such as set high DPI settings or default font,
  13. // see https://aka.ms/applicationconfiguration.
  14. ApplicationConfiguration.Initialize();
  15. #if !DEBUG
  16. var configer = (new ConfigurationBuilder()).AddJsonFile("options.json").Build();
  17. #else
  18. var configer = (new ConfigurationBuilder()).AddJsonFile("options.pro.json").Build();
  19. #endif
  20. HKLib.Configer.SaasRoute = configer["SaasRoute"];
  21. HKLib.Configer.MqAddress = configer["MQ"];
  22. HKLib.Configer.TenantId = configer["TenantId"];
  23. HKLib.Configer.AdRoute = configer["AdRoute"];
  24. HKLib.Configer.Admin = configer.GetSection("Admin").GetChildren().Select(t => t.Value).ToList();
  25. Application.Run(new Form1());
  26. }
  27. }
  28. }