Dropped UWP ImageFileCache

This commit is contained in:
ClemensFischer 2025-02-20 11:45:45 +01:00
parent f99fc777f2
commit 6ea58c9dd3
4 changed files with 23 additions and 22 deletions

View file

@ -29,8 +29,11 @@ namespace MapControl
/// Default folder path where a persistent cache implementation may save data, i.e. "C:\ProgramData\MapControl\TileCache".
/// </summary>
public static string DefaultCacheFolder =>
#if UWP
Path.Combine(Windows.Storage.ApplicationData.Current.LocalCacheFolder.Path, "TileCache");
#else
Path.Combine(Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData), "MapControl", "TileCache");
#endif
/// <summary>
/// An IDistributedCache implementation used to cache tile images.
/// The default value is a MemoryDistributedCache instance.