Exemplo n.º 1
0
        public async Task <List <CostRecommendationResponse> > GetCostSummaryDetails()
        {
            var cacheKey = CacheHelpers.GenerateCacheKeyForCostRecommendation();

            return(await cache.GetOrCreateAsync(cacheKey, async entry =>
            {
                entry.AbsoluteExpirationRelativeToNow = CacheHelpers.absoluteExpirationRelativeToNow;
                return await costRecommendationsOperations.GetCostSummaryDetails();
            }));
        }