mirror of
https://github.com/ClemensFischer/XAML-Map-Control.git
synced 2026-04-05 14:37:01 +00:00
Update ImageFileCache
This commit is contained in:
parent
08adde21b8
commit
6a0cfe96d8
3 changed files with 4 additions and 4 deletions
|
|
@ -32,7 +32,7 @@ namespace MapControl.Caching
|
|||
{
|
||||
if (string.IsNullOrEmpty(directory))
|
||||
{
|
||||
throw new ArgumentException("The directory argument must not be null or empty.", nameof(directory));
|
||||
throw new ArgumentException($"The {nameof(directory)} argument must not be null or empty.", nameof(directory));
|
||||
}
|
||||
|
||||
rootDirectory = directory;
|
||||
|
|
@ -40,7 +40,7 @@ namespace MapControl.Caching
|
|||
Debug.WriteLine($"Created ImageFileCache in {rootDirectory}");
|
||||
}
|
||||
|
||||
public Task Clean()
|
||||
public Task CleanAsync()
|
||||
{
|
||||
return Task.Factory.StartNew(CleanRootDirectory, TaskCreationOptions.LongRunning);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue