/// <summary> /// Initiates the asynchronous execution of the GetStatus operation. /// <seealso cref="Amazon.ImportExport.IAmazonImportExport.GetStatus"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStatus operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <GetStatusResponse> GetStatusAsync(GetStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, GetStatusRequest, GetStatusResponse>(request, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeGetStatus(GetStatusRequest getStatusRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new GetStatusRequestMarshaller().Marshall(getStatusRequest); var unmarshaller = GetStatusResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return(result); }
/// <summary> /// <para> This operation returns information about a job, including where /// the job is in the processing pipeline, the status of the results, and /// the signature value associated with the job. You can only return /// information about jobs you own. </para> /// </summary> /// /// <param name="getStatusRequest">Container for the necessary parameters /// to execute the GetStatus service method on AmazonImportExport.</param> /// /// <returns>The response from the GetStatus service method, as returned /// by AmazonImportExport.</returns> /// /// <exception cref="CanceledJobIdException"/> /// <exception cref="ExpiredJobIdException"/> /// <exception cref="InvalidAccessKeyIdException"/> /// <exception cref="InvalidJobIdException"/> public GetStatusResponse GetStatus(GetStatusRequest getStatusRequest) { IRequest <GetStatusRequest> request = new GetStatusRequestMarshaller().Marshall(getStatusRequest); GetStatusResponse response = Invoke <GetStatusRequest, GetStatusResponse> (request, this.signer, GetStatusResponseUnmarshaller.GetInstance()); return(response); }