Example #1
0
 public Task <IEnumerable <SearchTvShowViewModel> > AnticipatedTv(int currentPosition, int amountToLoad)
 {
     return(_mediaCacheService.GetOrAddAsync(nameof(AnticipatedTv) + currentPosition + amountToLoad,
                                             () => _tvEngineV2.Anticipated(currentPosition, amountToLoad),
                                             DateTimeOffset.Now.AddHours(12)));
 }
Example #2
0
 public async Task <IEnumerable <SearchTvShowViewModel> > AnticipatedTv(int currentPosition, int amountToLoad)
 {
     return(await _tvEngineV2.Anticipated(currentPosition, amountToLoad));
 }