mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 06:26:41 +00:00
Version 4.12.2 Minor changes in TileImageLoader.
This commit is contained in:
parent
0c0a0ae511
commit
8491a4fc7c
16 changed files with 70 additions and 81 deletions
|
|
@ -28,7 +28,7 @@ namespace MapControl
|
|||
/// </summary>
|
||||
public static ObjectCache Cache { get; set; } = MemoryCache.Default;
|
||||
|
||||
private async Task LoadCachedTileImageAsync(Tile tile, Uri uri, string cacheKey)
|
||||
private async Task LoadTileImageAsync(Tile tile, Uri uri, string cacheKey)
|
||||
{
|
||||
DateTime expiration;
|
||||
var cacheBuffer = GetCachedImage(cacheKey, out expiration);
|
||||
|
|
@ -52,7 +52,7 @@ namespace MapControl
|
|||
}
|
||||
}
|
||||
|
||||
if (cacheBuffer != null)
|
||||
if (cacheBuffer != null) // cached image not expired or download failed
|
||||
{
|
||||
using (var stream = new MemoryStream(cacheBuffer))
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue