Remove DownloadBook from BackupBook.
This commit is contained in:
parent
9332a6f350
commit
027cce2d99
@ -3,7 +3,7 @@ using System.Linq;
|
|||||||
using System.Threading.Tasks;
|
using System.Threading.Tasks;
|
||||||
using DataLayer;
|
using DataLayer;
|
||||||
using Dinah.Core.ErrorHandling;
|
using Dinah.Core.ErrorHandling;
|
||||||
using FileLiberator.AaxcDownloadDecrypt;
|
using FileLiberator;
|
||||||
using FileManager;
|
using FileManager;
|
||||||
|
|
||||||
namespace FileLiberator
|
namespace FileLiberator
|
||||||
@ -22,8 +22,6 @@ namespace FileLiberator
|
|||||||
public event EventHandler<string> StatusUpdate;
|
public event EventHandler<string> StatusUpdate;
|
||||||
public event EventHandler<LibraryBook> Completed;
|
public event EventHandler<LibraryBook> Completed;
|
||||||
|
|
||||||
|
|
||||||
public DownloadBookDummy DownloadBook { get; } = new DownloadBookDummy();
|
|
||||||
public DownloadDecryptBook DecryptBook { get; } = new DownloadDecryptBook();
|
public DownloadDecryptBook DecryptBook { get; } = new DownloadDecryptBook();
|
||||||
public DownloadPdf DownloadPdf { get; } = new DownloadPdf();
|
public DownloadPdf DownloadPdf { get; } = new DownloadPdf();
|
||||||
|
|
||||||
@ -38,12 +36,6 @@ namespace FileLiberator
|
|||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
{
|
|
||||||
var statusHandler = await DownloadBook.TryProcessAsync(libraryBook);
|
|
||||||
if (statusHandler.HasErrors)
|
|
||||||
return statusHandler;
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
var statusHandler = await DecryptBook.TryProcessAsync(libraryBook);
|
var statusHandler = await DecryptBook.TryProcessAsync(libraryBook);
|
||||||
if (statusHandler.HasErrors)
|
if (statusHandler.HasErrors)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user