/// <summary> /// A non blocking list jobs request/response cycle. /// </summary> /// <param name="pageNumber">The page number of jobs to list, if applicable.</param> /// <param name="pageSize">The page size of jobs to list, if applicable.</param> /// <param name="callback">The call response.</param> public void ListJobs(int?pageNumber, int?pageSize, Action <ListJobsResponse> callback) { ListJobsRequest request = new ListJobsRequest(this).ForPage(pageNumber, pageSize); request.GetResponseAsync(callback); }
/// <summary> /// A blocking list jobs request/response cycle. /// </summary> /// <param name="pageNumber">The page number of jobs to list, if applicable.</param> /// <param name="pageSize">The page size of jobs to list, if applicable.</param> /// <returns>The call response.</returns> public ListJobsResponse ListJobs(int?pageNumber, int?pageSize) { ListJobsRequest request = new ListJobsRequest(this).ForPage(pageNumber, pageSize); return(request.GetResponse()); }