using System.Collections.Generic; using System.Configuration; namespace Umbraco.Core.Configuration.UmbracoSettings { internal class DistributedCallElement : ConfigurationElement, IDistributedCallSection { [ConfigurationProperty("enable", DefaultValue = false)] internal bool Enabled { get { return (bool)base["enable"]; } } [ConfigurationProperty("user")] internal InnerTextConfigurationElement UserId { get { return new OptionalInnerTextConfigurationElement( (InnerTextConfigurationElement)this["user"], //set the default 0); } } [ConfigurationCollection(typeof(ServerCollection), AddItemName = "server")] [ConfigurationProperty("servers", IsDefaultCollection = true)] internal ServerCollection Servers { get { return (ServerCollection)base["servers"]; } } bool IDistributedCallSection.Enabled { get { return Enabled; } } int IDistributedCallSection.UserId { get { return UserId; } } IEnumerable IDistributedCallSection.Servers { get { return Servers; } } } }