public UrlTokenizerChinaCache(JToken node) : base(node)
 {
     if (node["algorithmId"] != null)
     {
         this._AlgorithmId = (ChinaCacheAlgorithmType)ParseEnum(typeof(ChinaCacheAlgorithmType), node["algorithmId"].Value <string>());
     }
     if (node["keyId"] != null)
     {
         this._KeyId = ParseInt(node["keyId"].Value <string>());
     }
 }
Esempio n. 2
0
        public UrlTokenizerChinaCache(XmlElement node) : base(node)
        {
            foreach (XmlElement propertyNode in node.ChildNodes)
            {
                switch (propertyNode.Name)
                {
                case "algorithmId":
                    this._AlgorithmId = (ChinaCacheAlgorithmType)ParseEnum(typeof(ChinaCacheAlgorithmType), propertyNode.InnerText);
                    continue;

                case "keyId":
                    this._KeyId = ParseInt(propertyNode.InnerText);
                    continue;
                }
            }
        }