AppendixConfigurationSection.cs 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  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. /// Settings for mailserver handling
  29. /// </summary>
  30. [ConfigurationProperty("mailServer")]
  31. public MailServerElement MailServerElement
  32. {
  33. get
  34. {
  35. return (MailServerElement)this["mailServer"];
  36. }
  37. set
  38. {
  39. this["mailserver"] = value;
  40. }
  41. }
  42. /// <summary>
  43. /// Settings for LDAP server handling
  44. /// </summary>
  45. [ConfigurationProperty("ldapServer")]
  46. public LdapServerElement LdapServerElement
  47. {
  48. get
  49. {
  50. return (LdapServerElement)this["ldapServer"];
  51. }
  52. set
  53. {
  54. this["ldapServer"] = value;
  55. }
  56. }
  57. }
  58. }