public async Task <List <string> > GetBackupLocationsInBackupChainAsync(string backupLocation, CancellationToken cancellationToken) { try { return(await BackupRestoreUtility.PerformIOWithRetriesAsync <string, List <string> >( GetBackupLocationsInBackupChainInternalAsync, backupLocation, cancellationToken)); } catch (Exception e) { throw new IOException("Unable to get backup locations in chain.", e); } }
public async Task <List <RestorePoint> > GetRecoveryPointDetailsAsync(IEnumerable <string> recoveryPointMetadataFiles, CancellationToken cancellationToken) { try { return(await BackupRestoreUtility.PerformIOWithRetriesAsync <IEnumerable <string>, List <RestorePoint> >( GetRecoveryPointDetailsInternalAsync, recoveryPointMetadataFiles, cancellationToken)); } catch (Exception e) { throw new IOException("Unable to get recovery point details.", e); } }