Provides local file system-based caching for map tiles, implementing the IMapCacheProvider interface to store and retrieve map data from disk.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.RadMap.dll
Syntax:
public class LocalFileCacheProvider : IMapCacheProvider
Inheritance: objectLocalFileCacheProvider
Implements:
Constructors
Initializes a new instance of the LocalFileCacheProvider class with the specified cache directory, creating the directory if it doesn't exist.
public LocalFileCacheProvider(string cacheDirectoryPath)
The file system path where cached map tiles will be stored.
Properties
Gets or sets the directory path where cached map tiles are stored, automatically creating the directory if it doesn't exist.
public string CacheDirectoryPath { get; set; }
Methods
Handles the completion of asynchronous file read operations, closing resources and invoking the callback with the loaded data.
protected virtual void AsyncFileReadComplete(IAsyncResult asyncResult)
The IAsyncResult representing the status of the asynchronous operation.
Synchronously loads cached data from the file system using the specified key, checking expiration and returning null if expired or not found.
Asynchronously loads cached data from the file system using the specified key, invoking the callback with the results or null if not found or expired.
Saves data to the cache with the specified key and expiration date, creating or overwriting the file as necessary.