internal GetStatusResponse GetStatus(GetStatusRequest request) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.Instance; return(Invoke <GetStatusRequest, GetStatusResponse>(request, marshaller, unmarshaller)); }
/// <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)); }
/// <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); }
/// <summary> /// Initiates the asynchronous execution of the GetStatus operation. /// </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, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.Instance; return(InvokeAsync <GetStatusRequest, GetStatusResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the GetStatus operation. /// <seealso cref="Amazon.ImportExport.IAmazonImportExport"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStatus operation on AmazonImportExportClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetStatus /// operation.</returns> public IAsyncResult BeginGetStatus(GetStatusRequest request, AsyncCallback callback, object state) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.Instance; return(BeginInvoke <GetStatusRequest>(request, marshaller, unmarshaller, callback, state)); }
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); }
public void GetStatusMarshallTest() { var operation = service_model.FindOperation("GetStatus"); var request = InstantiateClassGenerator.Execute <GetStatusRequest>(); var marshaller = new GetStatusRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = GetStatusResponseUnmarshaller.Instance.Unmarshall(context) as GetStatusResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <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> /// Initiates the asynchronous execution of the GetStatus operation. /// </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, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.Instance; return InvokeAsync<GetStatusRequest,GetStatusResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal GetStatusResponse GetStatus(GetStatusRequest request) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.Instance; return Invoke<GetStatusRequest,GetStatusResponse>(request, marshaller, unmarshaller); }
/// <summary> /// Initiates the asynchronous execution of the GetStatus operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetStatus operation on AmazonImportExportClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndGetStatus /// operation.</returns> public IAsyncResult BeginGetStatus(GetStatusRequest request, AsyncCallback callback, object state) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.Instance; return BeginInvoke<GetStatusRequest>(request, marshaller, unmarshaller, callback, state); }
/// <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; }
/// <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 async Task<GetStatusResponse> GetStatusAsync(GetStatusRequest request, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new GetStatusRequestMarshaller(); var unmarshaller = GetStatusResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, GetStatusRequest, GetStatusResponse>(request, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
public void GetStatusMarshallTest() { var operation = service_model.FindOperation("GetStatus"); var request = InstantiateClassGenerator.Execute<GetStatusRequest>(); var marshaller = new GetStatusRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); var payloadResponse = new XmlSampleGenerator(service_model, operation).Execute(); var context = new XmlUnmarshallerContext(Utils.CreateStreamFromString(payloadResponse), false, null); var response = GetStatusResponseUnmarshaller.Instance.Unmarshall(context) as GetStatusResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }