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,6 +1,7 @@
|
|||
using Avalonia.Controls;
|
||||
using Avalonia.Input;
|
||||
using MapControl;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using System;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
|
@ -12,8 +13,9 @@ namespace SampleApplication
|
|||
{
|
||||
public MainWindow()
|
||||
{
|
||||
//TileImageLoader.Cache = new MapControl.Caching.ImageFileCache(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