akavache

Akavache's GetObject<T> hangs when awaited. Any idea what is wrong here?

假装没事ソ 提交于 2020-01-23 08:11:29
问题 I have a Xamarin.Forms application, with this code in my App class (yes, this is just a sample to demonstrate the issue): public App() { BlobCache.ApplicationName = "MyApp"; BlobCache.EnsureInitialized(); // The root page of your application MainPage = GetMainPage(); } public object BlockingGetExternalUser() { return GetExternalUser().Result; } private async Task<object> GetExternalUser() { try { return await BlobCache.LocalMachine.GetObject<object>("user"); } catch (KeyNotFoundException) {

What does “linked out by Xamarin” mean?

泄露秘密 提交于 2020-01-05 05:18:09
问题 In the Akavache docs, it says... Add the following class anywhere in your project to make sure Akavache.Sqlite3 will not be linked out by Xamarin What does "linked out by Xamarin" mean? 回答1: The Xamarin.Android linker and Xamarin.iOS linker remove unused code from a compiled application. They inspect the compiled code and remove any code that doesn't appear as if it would be referenced during a run of the application. Because this analysis is done on a compiled binary (e.g., a static analysis

Possible bug in Akavache in Xamarin.Forms / Xamarin iOS

会有一股神秘感。 提交于 2019-12-24 07:29:52
问题 Implementation of Akavache works on Android debug and release and iOS debug mode. However, it crashes on iOS release mode. The exception thrown, intercepted from Raygun, is The type initializer for 'Akavache.Sqlite3.Internal.SQLiteConnection' threw an exception. Simply deploy iOS release mode and get prompted with the exception. Appreciate if anyone who had experienced similar issue could help. Akavache version is 6.0.0-alpha0038. Full stack trace as follow: Akavache.Sqlite3

How can I set JsonSerializerSettings for Akavache?

时光毁灭记忆、已成空白 提交于 2019-12-12 08:58:04
问题 I have set the global converter defaults for JSON.NET like so: var jsonSerializerSettings = new JsonSerializerSettings { Converters = new JsonConverter[] { new QuestionTypeConverter() } }; JsonConvert.DefaultSettings = () => jsonSerializerSettings; This works well with the rest of my code ("QuestionTypeConverter" is being used and works as expected), however, when retrieving an object from the Akavache cache, my "QuestionTypeConverter" is ignored and thus my object does not get deserialized

Xamarin.iOS / Akavache / Encrypted Cache Working Example

蹲街弑〆低调 提交于 2019-12-10 16:19:05
问题 Does anyone have and is willing to share a working example of using Akavache in a Xamarin.iOS project (ideally without any other add on ui frameworks, as bare bones as possible) implementing a custom EncryptionProvider so that the Secure cache is actually encrypted. To clarify, I would like the example to show the following: use of Xamarin.iOS to build a simple iOS app use of Akavache to cache data use of Akavache 's BlobCache.Secure or SQLiteEncryptedBlobCache with a custom

Xamarin.iOS / Akavache - Encrypted Cache with custom EncryptionProvider

試著忘記壹切 提交于 2019-12-07 01:59:32
问题 I have a Xamarin.iOS app that is using Akavache to cache data and reduce the number on unnecessary requests to the server for data. Everything is working great as expected using BlobCache.LocalMachine , love it. Now I would like to make sure that the data at rest in encrypted. From researching this and reading documentation online I saw that the default implementation doesn't actually encrypt the cache on iOS and that I actually need to provide a custom implementation of IEncryptionProvider .

Xamarin.iOS / Akavache - Encrypted Cache with custom EncryptionProvider

旧城冷巷雨未停 提交于 2019-12-05 07:00:26
I have a Xamarin.iOS app that is using Akavache to cache data and reduce the number on unnecessary requests to the server for data. Everything is working great as expected using BlobCache.LocalMachine , love it. Now I would like to make sure that the data at rest in encrypted. From researching this and reading documentation online I saw that the default implementation doesn't actually encrypt the cache on iOS and that I actually need to provide a custom implementation of IEncryptionProvider . I followed this article: http://kent-boogaart.com/blog/password-protected-encryption-provider-for

How can I set JsonSerializerSettings for Akavache?

こ雲淡風輕ζ 提交于 2019-12-04 12:06:32
I have set the global converter defaults for JSON.NET like so: var jsonSerializerSettings = new JsonSerializerSettings { Converters = new JsonConverter[] { new QuestionTypeConverter() } }; JsonConvert.DefaultSettings = () => jsonSerializerSettings; This works well with the rest of my code ("QuestionTypeConverter" is being used and works as expected), however, when retrieving an object from the Akavache cache, my "QuestionTypeConverter" is ignored and thus my object does not get deserialized properly. How can I enforce the usage of my custom type converters with Akavache or have Akavache use