Example #1
0
        public static async Task SaveDownloadedImage(DownloadedImageModel downloadedImage)
        {
            var databaseConnection = await GetDatabaseConnectionAsync().ConfigureAwait(false);

            await databaseConnection.InsertOrReplaceAsync(downloadedImage).ConfigureAwait(false);
        }
        public static async Task SaveDownloadedImage(DownloadedImageModel downloadedImage)
        {
            var databaseConnection = await GetDatabaseConnection <DownloadedImageModel>().ConfigureAwait(false);

            await AttemptAndRetry(() => databaseConnection.InsertOrReplaceAsync(downloadedImage)).ConfigureAwait(false);
        }