void processMessage(Message message, string jobId)
        {
            var messageJobId = getJobIdFromMessage(message);
            if (messageJobId == null)
                return;

            var command = new DownloadJobCommand(this.manager, this.vaultName, jobId, this.filePath, this.options);
            command.Execute();
        }
        async Task processMessageAsync(Message message, string jobId)
        {
            var messageJobId = getJobIdFromMessage(message);
            if (messageJobId == null)
                return;

            var command = new DownloadJobCommand(this.manager, this.vaultName, jobId, this.filePath, this.options);
            await command.ExecuteAsync().ConfigureAwait(false);
        }
Example #3
0
        async Task processMessageAsync(Message message, string jobId)
        {
            var messageJobId = getJobIdFromMessage(message);

            if (messageJobId == null)
            {
                return;
            }

            var command = new DownloadJobCommand(this.manager, this.vaultName, jobId, this.filePath, this.options);
            await command.ExecuteAsync().ConfigureAwait(false);
        }
Example #4
0
 /// <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();
 }
 /// <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();
 }