コード例 #1
0
        public void RefreshItems()
        {
            XDocument          doc   = XDocument.Load(ItemUrl);
            ItemInfoCollection items = new ItemInfoCollection(this, doc.Element("items").Elements("itemInfo"));

            ZCache.InsertCache(ItemCacheKey, items, Marketplace.CacheTime);
        }
コード例 #2
0
        public ItemInfoCollection GetItems(CatalogType catType)
        {
            if (_items == null)
            {
                _items = new ItemInfoCollection();
                foreach (ItemInfo item in Marketplace.Catalogs[catType].Items.Values)
                {
                    if (Util.AreEqualIgnoreCase(item.CreatorId, Id))
                    {
                        _items.Add(item.Id, item);
                    }
                }
            }

            return(_items);
        }