mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-08 16:05:50 +00:00
ImageFileCache trace output
This commit is contained in:
parent
ad84894b47
commit
1e220b36e2
3 changed files with 33 additions and 14 deletions
|
|
@ -90,6 +90,8 @@ namespace MapControl.Caching
|
|||
var options = new DistributedCacheEntryOptions { AbsoluteExpiration = file.CreationTime };
|
||||
|
||||
memoryCache.Set(key, value, options);
|
||||
|
||||
logger?.LogTrace("Read {name}", file.FullName);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -123,6 +125,8 @@ namespace MapControl.Caching
|
|||
var options = new DistributedCacheEntryOptions { AbsoluteExpiration = file.CreationTime };
|
||||
|
||||
await memoryCache.SetAsync(key, value, options, token).ConfigureAwait(false);
|
||||
|
||||
logger?.LogTrace("Read {name}", file.FullName);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -155,6 +159,8 @@ namespace MapControl.Caching
|
|||
}
|
||||
|
||||
SetExpiration(file, options);
|
||||
|
||||
logger?.LogTrace("Wrote {name}", file.FullName);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
@ -184,6 +190,8 @@ namespace MapControl.Caching
|
|||
}
|
||||
|
||||
SetExpiration(file, options);
|
||||
|
||||
logger?.LogTrace("Wrote {name}", file.FullName);
|
||||
}
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue