PageRenderTime 48ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/BlogEngine/DotNetSlave.BusinessLogic/Providers/FileSystemProviders/BlogFileSystemProviderSection.cs

#
C# | 41 lines | 30 code | 5 blank | 6 comment | 0 complexity | 845a7b634e973096db9b0cb4175afc81 MD5 | raw file
Possible License(s): LGPL-2.1, Apache-2.0, BSD-3-Clause
  1. using System.Configuration;
  2. namespace BlogEngine.Core.Providers
  3. {
  4. public class BlogFileSystemProviderSection : ConfigurationSection
  5. {
  6. #region Properties
  7. /// <summary>
  8. /// Gets or sets the name of the default provider
  9. /// </summary>
  10. [StringValidator(MinLength = 1)]
  11. [ConfigurationProperty("defaultProvider", DefaultValue = "XmlBlogProvider")]
  12. public string DefaultProvider
  13. {
  14. get
  15. {
  16. return (string)base["defaultProvider"];
  17. }
  18. set
  19. {
  20. base["defaultProvider"] = value;
  21. }
  22. }
  23. /// <summary>
  24. /// Gets a collection of registered providers.
  25. /// </summary>
  26. [ConfigurationProperty("providers")]
  27. public ProviderSettingsCollection Providers
  28. {
  29. get
  30. {
  31. return (ProviderSettingsCollection)base["providers"];
  32. }
  33. }
  34. #endregion
  35. }
  36. }