Пример #1
0
            private static List <CertificateInfo> FromJsonObject(JObject root, string storeName)
            {
                JToken storeNode = root[storeName];

                if (!(storeNode is JObject))
                {
                    throw new Exception("Unexpected type for certificate store node!");
                }

                List <CertificateInfo> certificateList = new List <CertificateInfo>();

                foreach (JProperty property in storeNode.Children())
                {
                    CertificateInfo info = CertificateInfo.FromJson(property);
                    certificateList.Add(info);
                }
                return(certificateList);
            }