mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Use LoggerFactory for tile cache
This commit is contained in:
parent
2b31969e10
commit
7d8ea86132
3 changed files with 12 additions and 10 deletions
|
|
@ -1,4 +1,5 @@
|
|||
using MapControl;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.UI.Input;
|
||||
using Microsoft.UI.Xaml;
|
||||
using Microsoft.UI.Xaml.Controls;
|
||||
|
|
@ -15,9 +16,9 @@ namespace SampleApplication
|
|||
{
|
||||
public MainWindow()
|
||||
{
|
||||
//TileImageLoader.Cache = new MapControl.Caching.ImageFileCache(TileImageLoader.DefaultCacheFolder);
|
||||
//TileImageLoader.Cache = new MapControl.Caching.SQLiteCache(TileImageLoader.DefaultCacheFolder);
|
||||
Closed += (s, e) => (TileImageLoader.Cache as IDisposable)?.Dispose();
|
||||
//var loggerFactory = LoggerFactory.Create(builder => builder.AddDebug());
|
||||
//TileImageLoader.Cache = new MapControl.Caching.ImageFileCache(TileImageLoader.DefaultCacheFolder, loggerFactory);
|
||||
//Closed += (s, e) => (TileImageLoader.Cache as IDisposable)?.Dispose();
|
||||
|
||||
InitializeComponent();
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue