Exemplo n.º 1
0
        /// <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);
        }
Exemplo n.º 2
0
        /// <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();
        }
Exemplo n.º 3
0
        /// <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));
 }