Exemplo n.º 1
0
 public Task <SearchFullInfoTvShowViewModel> GetTvInfo(string tvdbid)
 {
     return(_mediaCacheService.GetOrAddAsync(nameof(GetTvInfo) + tvdbid,
                                             () => _tvEngineV2.GetShowInformation(tvdbid, HttpContext.RequestAborted),
                                             DateTimeOffset.Now.AddHours(12)));
 }
Exemplo n.º 2
0
 public async Task <SearchFullInfoTvShowViewModel> GetTvInfo(string tvdbid)
 {
     return(await _tvEngineV2.GetShowInformation(tvdbid, HttpContext.RequestAborted));
 }