Example #1
0
        /// <summary>
        /// A blocking delete request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to delete.</param>
        /// <param name="callback">The call response.</param>
        public void DeleteJob(int jobId, Action <DeleteJobResponse> callback)
        {
            DeleteJobRequest request = new DeleteJobRequest(this)
            {
                JobId = jobId
            };

            request.GetResponseAsync(callback);
        }
Example #2
0
        /// <summary>
        /// A blocking delete job request/response cycle.
        /// </summary>
        /// <param name="jobId">The ID of the job to delete.</param>
        /// <returns>The call response.</returns>
        public DeleteJobResponse DeleteJob(int jobId)
        {
            DeleteJobRequest request = new DeleteJobRequest(this)
            {
                JobId = jobId
            };

            return(request.GetResponse());
        }