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