Beispiel #1
0
 public void SaveCache()
 {
     lock (SERIES_LOCK)
     {
         CachePersistor.SaveCache(Series, Movies, CacheFile, 0);
     }
 }
Beispiel #2
0
        public void Setup(FileInfo?loadFrom, FileInfo cache, CommandLineArgs cla)
        {
            System.Diagnostics.Debug.Assert(cache != null);
            CacheFile = cache;

            LastErrorMessage = string.Empty;

            LoadOk = loadFrom is null || CachePersistor.LoadTvCache(loadFrom, this);
        }
Beispiel #3
0
 public void SaveCache()
 {
     lock (MOVIE_LOCK)
     {
         lock (SERIES_LOCK)
         {
             CachePersistor.SaveCache(Series, Movies, CacheFile, latestMovieUpdateTime.LastSuccessfulServerUpdateTimecode());
         }
     }
 }
Beispiel #4
0
        public void Setup(FileInfo?loadFrom, FileInfo cache, CommandLineArgs cla)
        {
            System.Diagnostics.Debug.Assert(cache != null);
            CacheFile = cache;

            //assume that the data is up to date (this will be overridden by the value in the XML if we have a prior install)
            //If we have no prior install then the app has no shows and is by definition up-to-date
            latestMovieUpdateTime = new UpdateTimeTracker();
            latestTvUpdateTime    = new UpdateTimeTracker();

            LastErrorMessage = string.Empty;

            LoadOk = loadFrom is null || (CachePersistor.LoadMovieCache(loadFrom, this) && CachePersistor.LoadTvCache(loadFrom, this));
        }