public IItemsService CreateItemsService(string accountName, string accountId) { SetSecurityProtocol(); var inventoryCredentials = new InventoryService.APICredentials { DeveloperKey = this._developerKey, Password = this._developerPassword }; return(new ItemsService(inventoryCredentials, accountName, accountId, _cache) { SlidingCacheExpiration = _slidingCacheExpiration }); }
public IItemsService CreateItemsService( string accountName, string accountId ) { var inventoryCredentials = new InventoryService.APICredentials { DeveloperKey = this._developerKey, Password = this._developerPassword }; return new ItemsService( inventoryCredentials, accountName, accountId, _cache ){ SlidingCacheExpiration = _slidingCacheExpiration }; }