public SnapshotService(DatabaseFileProvider dbFileProvider, ISnapshotFileService fileService, ILog logger) { if (dbFileProvider == null) { throw new ArgumentNullException(nameof(dbFileProvider)); } if (fileService == null) { throw new ArgumentNullException(nameof(fileService)); } this.fileService = fileService; this.logger = logger ?? throw new ArgumentNullException(nameof(logger)); this.dbFileProvider = dbFileProvider; }
public SqliteBackupRestorer(IProvidesBackupFileInfo backupFileProvider, DatabaseFileProvider fileProvider, ISnapshotFileService fileService) { if (fileService == null) { throw new ArgumentNullException(nameof(fileService)); } if (fileProvider == null) { throw new ArgumentNullException(nameof(fileProvider)); } if (backupFileProvider == null) { throw new ArgumentNullException(nameof(backupFileProvider)); } this.backupFileProvider = backupFileProvider; this.fileProvider = fileProvider; this.fileService = fileService; }
public SqliteBackupCreator(IProvidesBackupFileInfo backupFileProvider, ISnapshotFileService snapshotFileService, DatabaseFileProvider dbFileProvider) { if (dbFileProvider == null) { throw new ArgumentNullException(nameof(dbFileProvider)); } if (backupFileProvider == null) { throw new ArgumentNullException(nameof(backupFileProvider)); } if (snapshotFileService == null) { throw new ArgumentNullException(nameof(snapshotFileService)); } this.dbFileProvider = dbFileProvider; this.backupFileProvider = backupFileProvider; this.snapshotFileService = snapshotFileService; }