Пример #1
0
 /// <summary>
 /// Default constructor
 /// </summary>
 public CommerceService()
 {
     this.priceService         = GW2.V2.Commerce.Prices;
     this.ItemsDatabaseBuilder = new ItemsDatabaseBuilder();
     this.ItemsDB = new ConcurrentDictionary <int, ItemDBEntry>();
     this.ReloadDatabase();
 }
Пример #2
0
        /// <summary>
        /// Default constructor
        /// </summary>
        public CommerceService()
        {
            ServiceFactory sf = ServiceFactory.Default();

            this.priceService         = (PriceService)sf.GetPriceService();
            this.itemService          = (ItemService)sf.GetItemService();
            this.serviceManager       = new ServiceManager();
            this.ItemsDatabaseBuilder = new ItemsDatabaseBuilder();
            this.ItemsDB = new ConcurrentDictionary <int, ItemDBEntry>();
            this.ReloadDatabase();
        }