Exemple #1
0
        public static void RefreshCreators()
        {
            XDocument             doc      = XDocument.Load(CreatorsUrl);
            CreatorInfoCollection creators = new CreatorInfoCollection(doc.Element("creators").Elements("creatorInfo"));

            ZCache.InsertCache(CreatorsCacheKey, creators, CacheTime);
        }
Exemple #2
0
        public void RefreshCreators()
        {
            CreatorInfoCollection creators = new CreatorInfoCollection();

            foreach (ItemInfo item in Items.Values)
            {
                if (!creators.ContainsKey(item.CreatorId))
                {
                    creators.Add(item.CreatorId, item.Creator);
                }
            }
            ZCache.InsertCache(CreatorCacheKey, creators, Marketplace.CacheTime);
        }