mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2025-12-06 07:12:04 +01:00
Update ImageFileCache.cs
This commit is contained in:
parent
07548efb93
commit
f15dde792e
|
|
@ -310,16 +310,18 @@ namespace MapControl.Caching
|
|||
|
||||
private FileInfo GetFile(string key)
|
||||
{
|
||||
FileInfo file = null;
|
||||
|
||||
try
|
||||
{
|
||||
return new FileInfo(Path.Combine(rootDirectory.FullName, Path.Combine(key.Split('/'))));
|
||||
file = new FileInfo(Path.Combine(rootDirectory.FullName, Path.Combine(key.Split('/'))));
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
logger?.LogError(ex, "Invalid key {key}", key);
|
||||
}
|
||||
|
||||
return null;
|
||||
return file;
|
||||
}
|
||||
|
||||
private static byte[] ReadAllBytes(FileInfo file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue