public void SetFinished(string videoId, string fileName, bool finished)
 {
     if (VideoCaches.ContainsKey(fileName)) {
         var item = VideoCaches[fileName];
         if (item.VideoId == videoId)
             item.Finished = finished;
     } else {
         var videoCache = new VideoCache { VideoId = videoId, FileName = fileName, Finished = finished };
         _videoCaches.Add(videoCache);
         VideoCaches.Add(fileName, videoCache);
     }
 }
Beispiel #2
0
 public void SetFinished(string videoId, string fileName, bool finished)
 {
     if (VideoCaches.ContainsKey(fileName))
     {
         var item = VideoCaches[fileName];
         if (item.VideoId == videoId)
         {
             item.Finished = finished;
         }
     }
     else
     {
         var videoCache = new VideoCache {
             VideoId = videoId, FileName = fileName, Finished = finished
         };
         _videoCaches.Add(videoCache);
         VideoCaches.Add(fileName, videoCache);
     }
 }