mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update MainWindow.xaml.cs
This commit is contained in:
parent
8ddb5e595e
commit
26dae3c4f8
|
|
@ -7,21 +7,23 @@ using System.Windows;
|
||||||
using System.Windows.Controls;
|
using System.Windows.Controls;
|
||||||
using System.Windows.Input;
|
using System.Windows.Input;
|
||||||
|
|
||||||
|
//using Microsoft.Extensions.Logging;
|
||||||
|
//using NeoSmart.Caching.Sqlite;
|
||||||
|
//using System.IO;
|
||||||
|
|
||||||
namespace SampleApplication
|
namespace SampleApplication
|
||||||
{
|
{
|
||||||
public partial class MainWindow : Window
|
public partial class MainWindow : Window
|
||||||
{
|
{
|
||||||
public MainWindow()
|
public MainWindow()
|
||||||
{
|
{
|
||||||
//MapProjectionFactory.Instance = new MapControl.Projections.GeoApiProjectionFactory();
|
|
||||||
|
|
||||||
//TileImageLoader.Cache = new MapControl.Caching.ImageFileCache(TileImageLoader.DefaultCacheFolder);
|
//TileImageLoader.Cache = new MapControl.Caching.ImageFileCache(TileImageLoader.DefaultCacheFolder);
|
||||||
//TileImageLoader.Cache = new MapControl.Caching.FileDbCache(TileImageLoader.DefaultCacheFolder);
|
|
||||||
//TileImageLoader.Cache = new MapControl.Caching.SQLiteCache(TileImageLoader.DefaultCacheFolder);
|
|
||||||
|
|
||||||
// https://neosmart.net/blog/sqlite-cache-for-asp-net-core/
|
// https://neosmart.net/blog/sqlite-cache-for-asp-net-core/
|
||||||
//TileImageLoader.Cache = new NeoSmart.Caching.Sqlite.SqliteCache(
|
//var factory = LoggerFactory.Create(builder => builder.AddDebug().SetMinimumLevel(LogLevel.Trace));
|
||||||
// new NeoSmart.Caching.Sqlite.SqliteCacheOptions { CachePath = System.IO.Path.Combine(TileImageLoader.DefaultCacheFolder, "TileCache.db") });
|
//var logger = factory.CreateLogger<SqliteCache>();
|
||||||
|
//var options = new SqliteCacheOptions { CachePath = Path.Combine(TileImageLoader.DefaultCacheFolder, "TileCache.db") };
|
||||||
|
//TileImageLoader.Cache = new SqliteCache(options, logger);
|
||||||
|
|
||||||
//Closed += (s, e) => (TileImageLoader.Cache as IDisposable)?.Dispose();
|
//Closed += (s, e) => (TileImageLoader.Cache as IDisposable)?.Dispose();
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue