Changed the way the Database is registered with TinyIoC to make Logdb and future cachedb more accessible.

This commit is contained in:
Taloth Saldono 2015-05-03 21:46:21 +02:00
parent 4ca8178ca8
commit 2a83088045
47 changed files with 181 additions and 72 deletions

View file

@ -24,7 +24,7 @@ namespace NzbDrone.Core.Backup
public class BackupService : IBackupService, IExecute<BackupCommand>
{
private readonly IDatabase _maindDb;
private readonly IMainDatabase _maindDb;
private readonly IDiskProvider _diskProvider;
private readonly IAppFolderInfo _appFolderInfo;
private readonly IArchiveService _archiveService;
@ -34,7 +34,7 @@ namespace NzbDrone.Core.Backup
private static readonly Regex BackupFileRegex = new Regex(@"nzbdrone_backup_[._0-9]+\.zip", RegexOptions.Compiled | RegexOptions.IgnoreCase);
public BackupService(IDatabase maindDb,
public BackupService(IMainDatabase maindDb,
IDiskProvider diskProvider,
IAppFolderInfo appFolderInfo,
IArchiveService archiveService,