Ejemplo n.º 1
0
        /// <summary>
        /// A blocking job details request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to get details for.</param>
        /// <param name="callback">The call response.</param>
        public void JobDetails(int jobId, Action <JobDetailsResponse> callback)
        {
            JobDetailsRequest request = new JobDetailsRequest(this)
            {
                JobId = jobId
            };

            request.GetResponseAsync(callback);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// A blocking job details request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to get details for.</param>
        /// <returns>The call response.</returns>
        public JobDetailsResponse JobDetails(int jobId)
        {
            JobDetailsRequest request = new JobDetailsRequest(this)
            {
                JobId = jobId
            };

            return(request.GetResponse());
        }