/// <summary> /// <para> /// Downloads the results from a completed archive retrieval. Saves the job output /// to the specified file. /// </para> /// <para> /// If there is an error during download the download will be retried from the last point read. /// Once the download is complete the checksum will be compared. /// </para> /// </summary> /// <param name="vaultName">The name of the vault to download the job output from.</param> /// <param name="jobId">The unique job ID for an archive retrieval job.</param> /// <param name="filePath">The file path to save the job output at.</param> /// <param name="options">Additional options that can be used for the download.</param> public Task DownloadJobAsync(string vaultName, string jobId, string filePath, DownloadOptions options) { var command = new DownloadJobCommand(this, vaultName, jobId, filePath, options); return(command.ExecuteAsync()); }
/// <summary> /// <para> /// Downloads the results from a completed archive retrieval. Saves the job output /// to the specified file. /// </para> /// <para> /// If there is an error during download the download will be retried from the last point read. /// Once the download is complete the checksum will be compared. /// </para> /// </summary> /// <param name="vaultName">The name of the vault to download the job output from.</param> /// <param name="jobId">The unique job ID for an archive retrieval job.</param> /// <param name="filePath">The file path to save the job output at.</param> /// <param name="options">Additional options that can be used for the download.</param> public void DownloadJob(string vaultName, string jobId, string filePath, DownloadOptions options) { var command = new DownloadJobCommand(this, vaultName, jobId, filePath, options); command.Execute(); }