Exemple #1
0
 private ImageCacheCell GetCell(string sourceImageUrl)
 {
     ImageCacheCell cell;
     if (!_cellBySourceImageUrl.TryGetValue(sourceImageUrl, out cell))
     {
         cell = new ImageCacheCell(sourceImageUrl, _requestQueue, _isoStore);
         _cellBySourceImageUrl.Add(sourceImageUrl, cell);
     }
     return cell;
 }
Exemple #2
0
        private ImageCacheCell GetCell(string sourceImageUrl)
        {
            ImageCacheCell cell;

            if (!_cellBySourceImageUrl.TryGetValue(sourceImageUrl, out cell))
            {
                cell = new ImageCacheCell(sourceImageUrl, _requestQueue, _isoStore);
                _cellBySourceImageUrl.Add(sourceImageUrl, cell);
            }
            return(cell);
        }