public MainPage() { this.InitializeComponent(); _dbFile = "cache.db"; _dbTempDir = "cache_data"; _cacheDbHandler = new SQLiteDbHandler(); _cacheDbHandler.InitWithPath(_dbFile, _dbTempDir); _cacheManager = new CacheManager(_cacheDbHandler); }
public async void TestMethod1() { Debug.WriteLine("TestMethod1"); var db = new SQLiteDbHandler(); Debug.WriteLine("here"); StorageFolder localFolder = ApplicationData.Current.LocalFolder; Debug.WriteLine("path = " + ApplicationData.Current.LocalFolder.Path); var dbPath = Path.Combine(ApplicationData.Current.LocalFolder.Path, "cache.db"); Debug.WriteLine("Database path: " + dbPath); db.InitWithPath(dbPath, ApplicationData.Current.LocalFolder.Path); var cacheManager = new CacheManager(null); await cacheManager.RequestItemAsync("http://www.ulv.no/ulv.jpg"); }