PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms 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
 1using System.Configuration;
 2
 3namespace BlogEngine.Core.Providers
 4{
 5    public class BlogFileSystemProviderSection : ConfigurationSection
 6    {
 7        #region Properties
 8
 9        /// <summary>
10        ///     Gets or sets the name of the default provider
11        /// </summary>
12        [StringValidator(MinLength = 1)]
13        [ConfigurationProperty("defaultProvider", DefaultValue = "XmlBlogProvider")]
14        public string DefaultProvider
15        {
16            get
17            {
18                return (string)base["defaultProvider"];
19            }
20
21            set
22            {
23                base["defaultProvider"] = value;
24            }
25        }
26        
27        /// <summary>
28        ///     Gets a collection of registered providers.
29        /// </summary>
30        [ConfigurationProperty("providers")]
31        public ProviderSettingsCollection Providers
32        {
33            get
34            {
35                return (ProviderSettingsCollection)base["providers"];
36            }
37        }
38
39        #endregion
40    }
41}