mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Use MemoryDistributedCache as default TileImageLoader Cache
This commit is contained in:
parent
b95384b3d6
commit
f14d198818
|
|
@ -4,7 +4,7 @@
|
|||
<RootNamespace>MapControl.Caching</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control FileDbCache Library</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<RootNamespace>MapControl.Caching</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control SQLiteCache Library</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCompany("Clemens Fischer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024 Clemens Fischer")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyVersion("9.0.0")]
|
||||
[assembly: AssemblyFileVersion("9.0.0")]
|
||||
[assembly: AssemblyVersion("9.0.1")]
|
||||
[assembly: AssemblyFileVersion("9.0.1")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<RootNamespace>MapControl.MBTiles</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control MBTiles Library for WPF</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<RootNamespace>MapControl.MBTiles</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control MBTiles Library for WinUI</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -3,6 +3,8 @@
|
|||
// Licensed under the Microsoft Public License (Ms-PL)
|
||||
|
||||
using Microsoft.Extensions.Caching.Distributed;
|
||||
using Microsoft.Extensions.Caching.Memory;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
|
|
@ -41,8 +43,9 @@ namespace MapControl
|
|||
|
||||
/// <summary>
|
||||
/// An IDistributedCache implementation used to cache tile images.
|
||||
/// The default value is a MemoryDistributedCache instance.
|
||||
/// </summary>
|
||||
public static IDistributedCache Cache { get; set; }
|
||||
public static IDistributedCache Cache { get; set; } = new MemoryDistributedCache(Options.Create(new MemoryDistributedCacheOptions()));
|
||||
|
||||
/// <summary>
|
||||
/// Default expiration time for cached tile images. Used when no expiration time
|
||||
|
|
|
|||
|
|
@ -286,6 +286,9 @@
|
|||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions">
|
||||
<Version>8.0.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory">
|
||||
<Version>8.0.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.NETCore.UniversalWindowsPlatform">
|
||||
<Version>6.2.14</Version>
|
||||
</PackageReference>
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCompany("Clemens Fischer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024 Clemens Fischer")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyVersion("9.0.0")]
|
||||
[assembly: AssemblyFileVersion("9.0.0")]
|
||||
[assembly: AssemblyVersion("9.0.1")]
|
||||
[assembly: AssemblyFileVersion("9.0.1")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<RootNamespace>MapControl</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control Library for WPF</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
@ -31,5 +31,6 @@
|
|||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<RootNamespace>MapControl</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control Library for WinUI</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
@ -30,5 +30,6 @@
|
|||
<PackageReference Include="Microsoft.WindowsAppSDK" Version="1.4.231219000" />
|
||||
<PackageReference Include="Microsoft.Windows.SDK.BuildTools" Version="10.0.22621.2428" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Abstractions" Version="8.0.0" />
|
||||
<PackageReference Include="Microsoft.Extensions.Caching.Memory" Version="8.0.0" />
|
||||
</ItemGroup>
|
||||
</Project>
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCompany("Clemens Fischer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024 Clemens Fischer")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyVersion("9.0.0")]
|
||||
[assembly: AssemblyFileVersion("9.0.0")]
|
||||
[assembly: AssemblyVersion("9.0.1")]
|
||||
[assembly: AssemblyFileVersion("9.0.1")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<RootNamespace>MapControl.Projections</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control Projections Library for WPF</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<RootNamespace>MapControl.Projections</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control Projections Library for WinUI</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCompany("Clemens Fischer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024 Clemens Fischer")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyVersion("9.0.0")]
|
||||
[assembly: AssemblyFileVersion("9.0.0")]
|
||||
[assembly: AssemblyVersion("9.0.1")]
|
||||
[assembly: AssemblyFileVersion("9.0.1")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<RootNamespace>MapControl.UiTools</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control UI Tools Library for WPF</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
<RootNamespace>MapControl.UiTools</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control UI Tools Library for WinUI</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<SignAssembly>true</SignAssembly>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<RootNamespace>ProjectionDemo</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control Projection Demo Application</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
</PropertyGroup>
|
||||
|
|
|
|||
|
|
@ -6,8 +6,8 @@ using System.Runtime.InteropServices;
|
|||
[assembly: AssemblyCompany("Clemens Fischer")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2024 Clemens Fischer")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyVersion("9.0.0")]
|
||||
[assembly: AssemblyFileVersion("9.0.0")]
|
||||
[assembly: AssemblyVersion("9.0.1")]
|
||||
[assembly: AssemblyFileVersion("9.0.1")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
[assembly: ComVisible(false)]
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
<RootNamespace>SampleApplication</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control WinUI Sample Application</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<AnalysisLevel>none</AnalysisLevel>
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@
|
|||
<RootNamespace>SampleApplication</RootNamespace>
|
||||
<AssemblyTitle>XAML Map Control WPF Sample Application</AssemblyTitle>
|
||||
<Product>XAML Map Control</Product>
|
||||
<Version>9.0.0</Version>
|
||||
<Version>9.0.1</Version>
|
||||
<Authors>Clemens Fischer</Authors>
|
||||
<Copyright>Copyright © 2024 Clemens Fischer</Copyright>
|
||||
<DefineConstants></DefineConstants>
|
||||
|
|
|
|||
Loading…
Reference in a new issue