コード例 #1
0
 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);
     }
 }
コード例 #2
0
 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);
     }
 }