Esempio n. 1
0
 public object DownloadVideo(Guid id)
 {
     if (DownloadExist(id) || _needRequest)
     {
         _service.DownloadVideo(id);
     }
     return(_cachedVideos.Any());
 }
Esempio n. 2
0
 public string DownloadVideo(string name)
 {
     _videoCache ??= new Dictionary <string, string>();
     if (!_videoCache.ContainsKey(name))
     {
         _videoCache[name] = _service.DownloadVideo(name);
     }
     return(_videoCache[name]);
 }
Esempio n. 3
0
 public Video DownloadVideo(int id)
 {
     return(_service.DownloadVideo(id));
 }