Move localdb file management of PublishedSnapshotService into itself. (#15085)

* Move localdb file management of PublishedSnapshotService into itself.

Added a way for the PublishedSnapshot service to clean up it's local files so (for example) Upgrade migrations have a reliable way of removing known invalid cache files without running into locking issues

* Small rename to differentiate existing method from simple getter

* Fix breaking change

Long live default implementations 🎉

* Another breaking change fix

---------

Co-authored-by: Sven Geusens <sge@umbraco.dk>
This commit is contained in:
Sven Geusens
2023-11-07 16:02:20 +01:00
committed by GitHub
parent c90f05c57c
commit 997434cebb
3 changed files with 41 additions and 7 deletions

View File

@@ -125,4 +125,8 @@ public interface IPublishedSnapshotService : IDisposable
/// Cleans up unused snapshots
/// </summary>
Task CollectAsync();
void ResetLocalDb()
{
}
}