Exemple #1
0
 public Task <SearchFullInfoTvShowViewModel> GetTvInfoByRequest(int requestId)
 {
     return(_mediaCacheService.GetOrAddAsync(nameof(GetTvInfoByRequest) + requestId,
                                             () => _tvEngineV2.GetShowByRequest(requestId, HttpContext.RequestAborted),
                                             DateTimeOffset.Now.AddHours(12)));
 }
Exemple #2
0
 public async Task <SearchFullInfoTvShowViewModel> GetTvInfoByRequest(int requestId)
 {
     return(await _tvEngineV2.GetShowByRequest(requestId, HttpContext.RequestAborted));
 }