This commit is contained in:
ClemensFischer 2025-03-31 20:55:57 +02:00
parent d01a948cf4
commit 4c5321958a
3 changed files with 6 additions and 15 deletions

View file

@ -43,16 +43,13 @@ namespace MapControl.Caching
public ImageFileCache(ImageFileCacheOptions options, ILoggerFactory loggerFactory = null)
{
if (loggerFactory != null)
{
logger = loggerFactory.CreateLogger<ImageFileCache>();
}
var path = options.Path;
rootDirectory = new DirectoryInfo(!string.IsNullOrEmpty(path) ? path : "TileCache");
rootDirectory.Create();
logger = loggerFactory?.CreateLogger<ImageFileCache>();
logger?.LogInformation("Started in {name}", rootDirectory.FullName);
var memoryCacheOptions = new MemoryDistributedCacheOptions();