Exemplo n.º 1
0
 public BackupAppData(IAppFolderInfo appFolderInfo,
                      IDiskProvider diskProvider,
                      IDiskTransferService diskTransferService,
                      Logger logger)
 {
     _appFolderInfo = appFolderInfo;
     _diskProvider = diskProvider;
     _diskTransferService = diskTransferService;
     _logger = logger;
 }
 public EpisodeFileMovingService(IEpisodeService episodeService,
                         IUpdateEpisodeFileService updateEpisodeFileService,
                         IBuildFileNames buildFileNames,
                         IDiskTransferService diskTransferService,
                         IDiskProvider diskProvider,
                         IMediaFileAttributeService mediaFileAttributeService,
                         IEventAggregator eventAggregator,
                         IConfigService configService,
                         Logger logger)
 {
     _episodeService = episodeService;
     _updateEpisodeFileService = updateEpisodeFileService;
     _buildFileNames = buildFileNames;
     _diskTransferService = diskTransferService;
     _diskProvider = diskProvider;
     _mediaFileAttributeService = mediaFileAttributeService;
     _eventAggregator = eventAggregator;
     _configService = configService;
     _logger = logger;
 }
Exemplo n.º 3
0
 public EpisodeFileMovingService(IEpisodeService episodeService,
                                 IUpdateEpisodeFileService updateEpisodeFileService,
                                 IBuildFileNames buildFileNames,
                                 IDiskTransferService diskTransferService,
                                 IDiskProvider diskProvider,
                                 IMediaFileAttributeService mediaFileAttributeService,
                                 IEventAggregator eventAggregator,
                                 IConfigService configService,
                                 Logger logger)
 {
     _episodeService            = episodeService;
     _updateEpisodeFileService  = updateEpisodeFileService;
     _buildFileNames            = buildFileNames;
     _diskTransferService       = diskTransferService;
     _diskProvider              = diskProvider;
     _mediaFileAttributeService = mediaFileAttributeService;
     _eventAggregator           = eventAggregator;
     _configService             = configService;
     _logger = logger;
 }
Exemplo n.º 4
0
        public BackupService(IMainDatabase maindDb,
                             IMakeDatabaseBackup makeDatabaseBackup,
                             IDiskTransferService diskTransferService,
                             IDiskProvider diskProvider,
                             IAppFolderInfo appFolderInfo,
                             IArchiveService archiveService,
                             IConfigService configService,
                             Logger logger)
        {
            _maindDb             = maindDb;
            _makeDatabaseBackup  = makeDatabaseBackup;
            _diskTransferService = diskTransferService;
            _diskProvider        = diskProvider;
            _appFolderInfo       = appFolderInfo;
            _archiveService      = archiveService;
            _configService       = configService;
            _logger = logger;

            _backupTempFolder = Path.Combine(_appFolderInfo.TempFolder, "sonarr_backup");
        }
Exemplo n.º 5
0
 public MetadataService(IConfigService configService,
                        IDiskTransferService diskTransferService,
                        IMetadataFactory metadataFactory,
                        ICleanMetadataService cleanMetadataService,
                        IDiskProvider diskProvider,
                        IHttpClient httpClient,
                        IMediaFileAttributeService mediaFileAttributeService,
                        IMetadataFileService metadataFileService,
                        Logger logger)
     : base(configService, diskTransferService, metadataFileService)
 {
     _metadataFactory           = metadataFactory;
     _cleanMetadataService      = cleanMetadataService;
     _diskTransferService       = diskTransferService;
     _diskProvider              = diskProvider;
     _httpClient                = httpClient;
     _mediaFileAttributeService = mediaFileAttributeService;
     _metadataFileService       = metadataFileService;
     _logger = logger;
 }
Exemplo n.º 6
0
 public InstallUpdateService(IDiskProvider diskProvider,
                             IDiskTransferService diskTransferService,
                             IDetectApplicationType detectApplicationType,
                             ITerminateNzbDrone terminateNzbDrone,
                             IAppFolderInfo appFolderInfo,
                             IBackupAndRestore backupAndRestore,
                             IBackupAppData backupAppData,
                             IStartNzbDrone startNzbDrone,
                             IProcessProvider processProvider,
                             Logger logger)
 {
     _diskProvider          = diskProvider;
     _diskTransferService   = diskTransferService;
     _detectApplicationType = detectApplicationType;
     _terminateNzbDrone     = terminateNzbDrone;
     _appFolderInfo         = appFolderInfo;
     _backupAndRestore      = backupAndRestore;
     _backupAppData         = backupAppData;
     _startNzbDrone         = startNzbDrone;
     _processProvider       = processProvider;
     _logger = logger;
 }
Exemplo n.º 7
0
 public MovieFileMovingService(IMovieService movieService,
                               IUpdateMovieFileService updateMovieFileService,
                               IBuildFileNames buildFileNames,
                               IDiskTransferService diskTransferService,
                               IDiskProvider diskProvider,
                               IMediaFileAttributeService mediaFileAttributeService,
                               IRecycleBinProvider recycleBinProvider,
                               IEventAggregator eventAggregator,
                               IConfigService configService,
                               Logger logger)
 {
     _movieService              = movieService;
     _updateMovieFileService    = updateMovieFileService;
     _buildFileNames            = buildFileNames;
     _diskTransferService       = diskTransferService;
     _diskProvider              = diskProvider;
     _mediaFileAttributeService = mediaFileAttributeService;
     _recycleBinProvider        = recycleBinProvider;
     _eventAggregator           = eventAggregator;
     _configService             = configService;
     _logger = logger;
 }
Exemplo n.º 8
0
 public TrackFileMovingService(ITrackService trackService,
                               IAlbumService albumService,
                               IUpdateTrackFileService updateTrackFileService,
                               IBuildFileNames buildFileNames,
                               IDiskTransferService diskTransferService,
                               IDiskProvider diskProvider,
                               IMediaFileAttributeService mediaFileAttributeService,
                               IEventAggregator eventAggregator,
                               IConfigService configService,
                               Logger logger)
 {
     _trackService              = trackService;
     _albumService              = albumService;
     _updateTrackFileService    = updateTrackFileService;
     _buildFileNames            = buildFileNames;
     _diskTransferService       = diskTransferService;
     _diskProvider              = diskProvider;
     _mediaFileAttributeService = mediaFileAttributeService;
     _eventAggregator           = eventAggregator;
     _configService             = configService;
     _logger = logger;
 }
Exemplo n.º 9
0
        public InstallUpdateService(ICheckUpdateService checkUpdateService,
                                    IAppFolderInfo appFolderInfo,
                                    IManageCommandQueue commandQueueManager,
                                    IDiskProvider diskProvider,
                                    IDiskTransferService diskTransferService,
                                    IHttpClient httpClient,
                                    IArchiveService archiveService,
                                    IProcessProvider processProvider,
                                    IVerifyUpdates updateVerifier,
                                    IStartupContext startupContext,
                                    IDeploymentInfoProvider deploymentInfoProvider,
                                    IConfigFileProvider configFileProvider,
                                    IRuntimeInfo runtimeInfo,
                                    IBackupService backupService,
                                    IOsInfo osInfo,
                                    Logger logger)
        {
            if (configFileProvider == null)
            {
                throw new ArgumentNullException(nameof(configFileProvider));
            }

            _checkUpdateService     = checkUpdateService;
            _appFolderInfo          = appFolderInfo;
            _commandQueueManager    = commandQueueManager;
            _diskProvider           = diskProvider;
            _diskTransferService    = diskTransferService;
            _httpClient             = httpClient;
            _archiveService         = archiveService;
            _processProvider        = processProvider;
            _updateVerifier         = updateVerifier;
            _startupContext         = startupContext;
            _deploymentInfoProvider = deploymentInfoProvider;
            _configFileProvider     = configFileProvider;
            _runtimeInfo            = runtimeInfo;
            _backupService          = backupService;
            _osInfo = osInfo;
            _logger = logger;
        }
Exemplo n.º 10
0
 public BookFileMovingService(IEditionService editionService,
                              IUpdateBookFileService updateBookFileService,
                              IBuildFileNames buildFileNames,
                              IDiskTransferService diskTransferService,
                              IDiskProvider diskProvider,
                              IRootFolderWatchingService rootFolderWatchingService,
                              IMediaFileAttributeService mediaFileAttributeService,
                              IEventAggregator eventAggregator,
                              IConfigService configService,
                              Logger logger)
 {
     _editionService            = editionService;
     _updateBookFileService     = updateBookFileService;
     _buildFileNames            = buildFileNames;
     _diskTransferService       = diskTransferService;
     _diskProvider              = diskProvider;
     _rootFolderWatchingService = rootFolderWatchingService;
     _mediaFileAttributeService = mediaFileAttributeService;
     _eventAggregator           = eventAggregator;
     _configService             = configService;
     _logger = logger;
 }
Exemplo n.º 11
0
 public InstallUpdateService(IDiskProvider diskProvider,
                             IDiskTransferService diskTransferService,
                             IDetectApplicationType detectApplicationType,
                             ITerminateNzbDrone terminateNzbDrone,
                             IAppFolderInfo appFolderInfo,
                             IBackupAndRestore backupAndRestore,
                             IBackupAppData backupAppData,
                             IStartNzbDrone startNzbDrone,
                             IProcessProvider processProvider,
                             Logger logger)
 {
     _diskProvider = diskProvider;
     _diskTransferService = diskTransferService;
     _detectApplicationType = detectApplicationType;
     _terminateNzbDrone = terminateNzbDrone;
     _appFolderInfo = appFolderInfo;
     _backupAndRestore = backupAndRestore;
     _backupAppData = backupAppData;
     _startNzbDrone = startNzbDrone;
     _processProvider = processProvider;
     _logger = logger;
 }
Exemplo n.º 12
0
 public MetadataService(IConfigService configService,
                        IDiskProvider diskProvider,
                        IDiskTransferService diskTransferService,
                        IRecycleBinProvider recycleBinProvider,
                        IOtherExtraFileRenamer otherExtraFileRenamer,
                        IMetadataFactory metadataFactory,
                        ICleanMetadataService cleanMetadataService,
                        IHttpClient httpClient,
                        IMediaFileAttributeService mediaFileAttributeService,
                        IMetadataFileService metadataFileService,
                        Logger logger)
     : base(configService, diskProvider, diskTransferService, logger)
 {
     _metadataFactory           = metadataFactory;
     _cleanMetadataService      = cleanMetadataService;
     _otherExtraFileRenamer     = otherExtraFileRenamer;
     _recycleBinProvider        = recycleBinProvider;
     _diskTransferService       = diskTransferService;
     _diskProvider              = diskProvider;
     _httpClient                = httpClient;
     _mediaFileAttributeService = mediaFileAttributeService;
     _metadataFileService       = metadataFileService;
     _logger = logger;
 }
Exemplo n.º 13
0
 public MetadataService(IMetadataFactory metadataFactory,
                        IMetadataFileService metadataFileService,
                        ICleanMetadataService cleanMetadataService,
                        IMediaFileService mediaFileService,
                        IEpisodeService episodeService,
                        IDiskTransferService diskTransferService,
                        IDiskProvider diskProvider,
                        IHttpClient httpClient,
                        IMediaFileAttributeService mediaFileAttributeService,
                        IEventAggregator eventAggregator,
                        Logger logger)
 {
     _metadataFactory           = metadataFactory;
     _metadataFileService       = metadataFileService;
     _cleanMetadataService      = cleanMetadataService;
     _mediaFileService          = mediaFileService;
     _episodeService            = episodeService;
     _diskTransferService       = diskTransferService;
     _diskProvider              = diskProvider;
     _httpClient                = httpClient;
     _mediaFileAttributeService = mediaFileAttributeService;
     _eventAggregator           = eventAggregator;
     _logger = logger;
 }
Exemplo n.º 14
0
 public BackupAndRestore(IDiskTransferService diskTransferService, IAppFolderInfo appFolderInfo, Logger logger)
 {
     _diskTransferService = diskTransferService;
     _appFolderInfo       = appFolderInfo;
     _logger = logger;
 }
Exemplo n.º 15
0
 public BackupAndRestore(IDiskTransferService diskTransferService, IAppFolderInfo appFolderInfo, Logger logger)
 {
     _diskTransferService = diskTransferService;
     _appFolderInfo = appFolderInfo;
     _logger = logger;
 }