Configuration.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. using System.Collections.Generic;
  2. using System.Globalization;
  3. namespace BO.AppServer.Metadata.Configuration
  4. {
  5. public class Configuration
  6. {
  7. public CfgApis Api { get; set; }
  8. public CfgSystem System { get; set; }
  9. public CfgBusiness Business { get; set; }
  10. public class CfgApis
  11. {
  12. public CfgApiConsole Console { get; set; }
  13. }
  14. public class CfgApiConsole
  15. {
  16. public IList<string> MagicKeys { get; set; }
  17. }
  18. public class CfgSystem
  19. {
  20. public string DbConnectionBO { get; set; }
  21. public string DbConnectionIF { get; set; }
  22. public CfgSystemAccount AccountSystem { get; set; }
  23. public CfgSystemAccount AccountConsole { get; set; }
  24. public CfgSystemAccount AccountAdmin { get; set; }
  25. public string SessionIdleTimeout { get; set; }
  26. public CfgSystemStorage Storage { get; set; }
  27. public bool UseSSL { get; set; }
  28. }
  29. public class CfgSystemAccount
  30. {
  31. public string Name { get; set; }
  32. public string Password { get; set; }
  33. public string Email { get; set; }
  34. public string Culture { get; set; }
  35. public int CultureLcid => CultureInfo.GetCultureInfo(Culture).LCID;
  36. }
  37. public class CfgBusiness
  38. {
  39. public string DefaultBillingPlanCode { get; set; }
  40. }
  41. public class CfgSystemStorage
  42. {
  43. public string InputPath { get; set; }
  44. public string OutputPath { get; set; }
  45. public int IoBufferSize { get; set; }
  46. }
  47. }
  48. }