AppendixConfigurationSection.cs 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Configuration;
  4. using System.Linq;
  5. using System.Text;
  6. using System.Threading.Tasks;
  7. namespace GreenTree.Nachtragsmanagement.Core.Configuration
  8. {
  9. public class AppendixConfigurationSection : ConfigurationSection
  10. {
  11. /// <summary>
  12. /// The anonymous user used by the Microsoft IIS, so the application can differ the anonymous user from
  13. /// real domain users
  14. /// </summary>
  15. [ConfigurationProperty("iisAnonymousUser", DefaultValue = "IUSR", IsRequired = false)]
  16. public string IISAnonymousUser
  17. {
  18. get
  19. {
  20. return (string)this["iisAnonymousUser"];
  21. }
  22. set
  23. {
  24. this["iisAnonymousUser"] = value;
  25. }
  26. }
  27. /// <summary>
  28. /// The URL of the webservice providing updates for that application
  29. /// </summary>
  30. [ConfigurationProperty("checkUpdateUrl", IsRequired = false)]
  31. public string CheckUpdateUrl
  32. {
  33. get
  34. {
  35. return (string)this["checkUpdateUrl"];
  36. }
  37. set
  38. {
  39. this["checkUpdateUrl"] = value;
  40. }
  41. }
  42. /// <summary>
  43. /// Settings for mailserver handling
  44. /// </summary>
  45. [ConfigurationProperty("mailServer")]
  46. public MailServerElement MailServerElement
  47. {
  48. get
  49. {
  50. return (MailServerElement)this["mailServer"];
  51. }
  52. set
  53. {
  54. this["mailserver"] = value;
  55. }
  56. }
  57. /// <summary>
  58. /// Settings for LDAP server handling
  59. /// </summary>
  60. [ConfigurationProperty("ldapServer")]
  61. public LdapServerElement LdapServerElement
  62. {
  63. get
  64. {
  65. return (LdapServerElement)this["ldapServer"];
  66. }
  67. set
  68. {
  69. this["ldapServer"] = value;
  70. }
  71. }
  72. }
  73. }