public BackupOperation(BackupConfiguration backupConfiguration) { _backupConfiguration = backupConfiguration ?? throw new ArgumentNullException(nameof(backupConfiguration)); if (_backupConfiguration.HasBackup() == false) { throw new InvalidOperationException("Cannot start one time backup using the provided configuration."); } }
public BackupOperation(BackupConfiguration backupConfiguration) { _backupConfiguration = backupConfiguration ?? throw new ArgumentNullException(nameof(backupConfiguration)); if (_backupConfiguration.HasBackup() == false) { throw new InvalidOperationException("Cannot start the one-time backup using the provided configuration since the backup configuration defines no destinations."); } }