Ejemplo n.º 1
0
        /// <summary>
        /// A non blocking job progress request/response cycle.
        /// </summary>
        /// <param name="outputId">The ID of the output (NOT the job ID) to get progress for.</param>
        /// <param name="callback">The call response.</param>
        public void JobOutputProgress(int outputId, Action <JobOutputProgressResponse> callback)
        {
            JobOutputProgressRequest request = new JobOutputProgressRequest(this)
            {
                OutputId = outputId
            };

            request.GetResponseAsync(callback);
        }
Ejemplo 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 JobOutputProgressResponse JobOutputProgress(int outputId)
        {
            JobOutputProgressRequest request = new JobOutputProgressRequest(this)
            {
                OutputId = outputId
            };

            return(request.GetResponse());
        }