mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-09 08:25:10 +00:00
Logger
This commit is contained in:
parent
d01a948cf4
commit
4c5321958a
3 changed files with 6 additions and 15 deletions
|
|
@ -43,11 +43,6 @@ namespace MapControl.Caching
|
|||
|
||||
public FileDbCache(FileDbCacheOptions options, ILoggerFactory loggerFactory = null)
|
||||
{
|
||||
if (loggerFactory != null)
|
||||
{
|
||||
logger = loggerFactory.CreateLogger<FileDbCache>();
|
||||
}
|
||||
|
||||
var path = options.Path;
|
||||
|
||||
if (string.IsNullOrEmpty(path) || string.IsNullOrEmpty(Path.GetExtension(path)))
|
||||
|
|
@ -55,6 +50,8 @@ namespace MapControl.Caching
|
|||
path = Path.Combine(path ?? "", "TileCache.fdb");
|
||||
}
|
||||
|
||||
logger = loggerFactory?.CreateLogger<FileDbCache>();
|
||||
|
||||
try
|
||||
{
|
||||
fileDb.Open(path);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue