Exemplo n.º 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);
 }
Exemplo n.º 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);
 }