mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-06 06:55:04 +00:00
Added TileImageLoader.WinUI
This commit is contained in:
parent
d4bc137408
commit
e096f97e85
11 changed files with 110 additions and 42 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue