Ejemplo n.º 1
0
        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");

        }