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)); } }
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; } }