Beispiel #1
0
 public async Task<CommentModel> GetCommentModelsAsync(string partitionKey, string rowKey, int takeCount)
 {
     return
         await
             _cache.Get(
                 _cacheKeyFactory.CreateKey(RegionOfComment, partitionKey, rowKey, takeCount.ToString()),
                 async () => await _commentService.GetCommentModelsAsync(partitionKey, rowKey, takeCount));
 }
Beispiel #2
0
 public async Task <string> GetSasForTable(string tableName)
 {
     return(await _cache.Get(_cacheKeyFactory.CreateKey(RegionOfTableSas, tableName),
                             async() => await _sasService.GetSasForTable(tableName)));
 }
Beispiel #3
0
 public async Task <CloudTable> GetTableReferenceAsync(string tableName)
 {
     return(await _cache.Get(_cacheKeyFactory.CreateKey(RegionOfTable, tableName),
                             async() => await _azureStorage.GetTableReferenceAsync(tableName)));
 }
Beispiel #4
0
 public async Task <TumblrEntity> GetTumblrEntityAsync(string partitionKey, string rowKey)
 {
     return(await _cache.Get(_cacheKeyFactory.CreateKey(RegionOfTumblr, partitionKey, rowKey),
                             async() => await _tumblrService.GetTumblrEntityAsync(partitionKey, rowKey)));
 }