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(); } }
public void Dispose() { foreach (var w in watchers) { w.Dispose(); } changeTimer?.Dispose(); watchTimer?.Dispose(); store?.Dispose(); FileStreamCache.Clear(); }
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; } }