Beispiel #1
1
 public static void AddFiles(FileStore store, IEnumerable<WeakReference> items)
 {
     var storeRef = new WeakReference(store);
       foreach (var i in items) {
     queue.Add(new Item(storeRef, i));
       }
 }
Beispiel #2
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 availble; failed to load SQLite Adapter", ex);
     store = null;
       }
 }