Configuration.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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 CfgSystemAccount AccountProcess { get; set; }
  26. public string SessionIdleTimeout { get; set; }
  27. public CfgSystemStorage Storage { get; set; }
  28. public bool UseSSL { get; set; }
  29. }
  30. public class CfgSystemAccount
  31. {
  32. public string Name { get; set; }
  33. public string Password { get; set; }
  34. public string Email { get; set; }
  35. public string Culture { get; set; }
  36. public int CultureLcid => CultureInfo.GetCultureInfo(Culture).LCID;
  37. }
  38. public class CfgBusiness
  39. {
  40. public string DefaultBillingPlanCode { get; set; }
  41. }
  42. public class CfgSystemStorage
  43. {
  44. public string InputPath { get; set; }
  45. public string OutputPath { get; set; }
  46. public int IoBufferSize { get; set; }
  47. }
  48. }
  49. }