Sage.Configuration.CachingConfiguration.Parse C# (CSharp) Method

Parse() public method

public Parse ( XmlElement configElement ) : void
configElement System.Xml.XmlElement
return void
        public void Parse(XmlElement configElement)
        {
            this.Enabled = configElement.GetAttribute("enabled").EqualsAnyOf("yes", "true", "1");
            this.Directory = configElement.GetString("p:directory", XmlNamespaces.Manager);

            var groups = configElement.SelectNodes("p:groups/p:group", XmlNamespaces.Manager);
            this.Groups = new Dictionary<string, Group>();
            foreach (XmlElement node in groups)
            {
                var group = new Group(node);
                this.Groups.Add(group.Name, group);
            }
        }
CachingConfiguration