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