/// <summary> /// A non blocking job progress request/response cycle. /// </summary> /// <param name="jobId">The ID of the job to get progress for.</param> /// <param name="callback">The call response.</param> public void JobProgress(int jobId, Action<JobProgressResponse> callback) { JobProgressRequest request = new JobProgressRequest(this) { JobId = jobId }; request.GetResponseAsync(callback); }
/// <summary> /// A blocking job progress request/response cycle. /// </summary> /// <param name="outputId">The ID of the output (NOT the job ID) to get progress for.</param> /// <returns>The call response.</returns> public JobProgressResponse JobProgress(int outputId) { JobProgressRequest request = new JobProgressRequest(this) { OutputId = outputId }; return request.GetResponse(); }
/// <summary> /// A blocking job progress request/response cycle. /// </summary> /// <param name="jobId">The ID of the job to get progress for.</param> /// <returns>The call response.</returns> public JobProgressResponse JobProgress(int jobId) { JobProgressRequest request = new JobProgressRequest(this) { JobId = jobId }; return request.GetResponse(); }
public Task <JobProgress> Any(JobProgressRequest request) { return(jobProgressProvider.GetJobProgressAsync(request.JobId)); }