Added TileImageLoader.WinUI

This commit is contained in:
Clemens 2021-07-02 21:18:39 +02:00
parent d4bc137408
commit e096f97e85
11 changed files with 110 additions and 42 deletions

View file

@ -86,7 +86,7 @@ namespace MapControl.Caching
return command;
}
private SQLiteCommand SetItemCommand(string key, DateTime expiration, byte[] buffer)
private SQLiteCommand SetItemCommand(string key, byte[] buffer, DateTime expiration)
{
var command = new SQLiteCommand("insert or replace into items (key, expiration, buffer) values (@key, @exp, @buf)", connection);
command.Parameters.AddWithValue("@key", key);

View file

@ -36,7 +36,7 @@ namespace MapControl.Caching
{
try
{
using (var command = SetItemCommand(key, expiration, buffer))
using (var command = SetItemCommand(key, buffer, expiration))
{
await command.ExecuteNonQueryAsync();
}

View file

@ -151,7 +151,7 @@ namespace MapControl.Caching
try
{
using (var command = SetItemCommand(key, cacheItem.Item2, cacheItem.Item1))
using (var command = SetItemCommand(key, cacheItem.Item1, cacheItem.Item2))
{
command.ExecuteNonQuery();
}