Beispiel #1
0
 public void Dispose()
 {
     foreach (var w in watchers)
     {
         w.Dispose();
     }
     if (changeTimer != null)
     {
         changeTimer.Dispose();
     }
     if (watchTimer != null)
     {
         watchTimer.Dispose();
     }
     if (store != null)
     {
         store.Dispose();
     }
 }
Beispiel #2
0
 public void Dispose()
 {
     foreach (var w in watchers)
     {
         w.Dispose();
     }
     changeTimer?.Dispose();
     watchTimer?.Dispose();
     store?.Dispose();
     FileStreamCache.Clear();
 }
Beispiel #3
0
 public void SetCacheFile(FileInfo info)
 {
     if (store != null)
     {
         store.Dispose();
         store = null;
     }
     try {
         store = new FileStore(info);
     }
     catch (Exception ex) {
         Warn("FileStore is not available; failed to load SQLite Adapter", ex);
         store = null;
     }
 }