Example #1
0
        public object Create(object parent, object configContext, System.Xml.XmlNode section)
        {
            CssServerConfiguration returnValue = new CssServerConfiguration();

            foreach (XmlNode node in section.SelectNodes("userTokens/userToken"))
            {
                returnValue.UserTokens.Add(node.Attributes["name"].Value, node.Attributes["value"].Value);
            }

            return(returnValue);
        }
Example #2
0
 private Configuration()
 {
     CssServer = (CssServerConfiguration)ConfigurationManager.GetSection("cssServer");
 }