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); }
private Configuration() { CssServer = (CssServerConfiguration)ConfigurationManager.GetSection("cssServer"); }