Centralize audio/aaxc files GetPath and Exists into temp TransitionalFileLocator

This commit is contained in:
Robert McRackan 2021-07-29 07:50:37 -04:00
parent d4fbb03577
commit 0c265a9010
10 changed files with 80 additions and 40 deletions

View file

@ -24,7 +24,7 @@ namespace FileLiberator
public DownloadPdf DownloadPdf { get; } = new DownloadPdf();
public bool Validate(LibraryBook libraryBook)
=> !AudibleFileStorage.Audio.Exists(libraryBook.Book.AudibleProductId);
=> !ApplicationServices.TransitionalFileLocator.Audio_Exists(libraryBook.Book.AudibleProductId);
// do NOT use ConfigureAwait(false) on ProcessAsync()
// often calls events which prints to forms in the UI context