Exemple #1
0
        /// <summary>
        /// A blocking resubmit job request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to resubmit.</param>
        /// <param name="callback">The call response.</param>
        public void ResubmitJob(int jobId, Action <ResubmitJobResponse> callback)
        {
            ResubmitJobRequest request = new ResubmitJobRequest(this)
            {
                JobId = jobId
            };

            request.GetResponseAsync(callback);
        }
Exemple #2
0
        /// <summary>
        /// A blocking resubmit job request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to resubmit.</param>
        /// <returns>The call response.</returns>
        public ResubmitJobResponse ResubmitJob(int jobId)
        {
            ResubmitJobRequest request = new ResubmitJobRequest(this)
            {
                JobId = jobId
            };

            return(request.GetResponse());
        }