/// <summary> /// <para> Retrieves the compiled information from a RequestEnvironmentInfo request. </para> <para>Related Topics</para> /// <ul> /// <li> RequestEnvironmentInfo </li> /// /// </ul> /// </summary> /// /// <param name="retrieveEnvironmentInfoRequest">Container for the necessary parameters to execute the RetrieveEnvironmentInfo service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the RetrieveEnvironmentInfo service method, as returned by AmazonElasticBeanstalk.</returns> /// public RetrieveEnvironmentInfoResponse RetrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest retrieveEnvironmentInfoRequest) { IRequest <RetrieveEnvironmentInfoRequest> request = new RetrieveEnvironmentInfoRequestMarshaller().Marshall(retrieveEnvironmentInfoRequest); RetrieveEnvironmentInfoResponse response = Invoke <RetrieveEnvironmentInfoRequest, RetrieveEnvironmentInfoResponse> (request, this.signer, RetrieveEnvironmentInfoResponseUnmarshaller.GetInstance()); return(response); }
public void RetrieveEnvironmentInfoMarshallTest() { var operation = service_model.FindOperation("RetrieveEnvironmentInfo"); var request = InstantiateClassGenerator.Execute <RetrieveEnvironmentInfoRequest>(); var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); 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 = RetrieveEnvironmentInfoResponseUnmarshaller.Instance.Unmarshall(context) as RetrieveEnvironmentInfoResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
IAsyncResult invokeRetrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest retrieveEnvironmentInfoRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new RetrieveEnvironmentInfoRequestMarshaller().Marshall(retrieveEnvironmentInfoRequest); var unmarshaller = RetrieveEnvironmentInfoResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
/// <summary> /// Initiates the asynchronous execution of the RetrieveEnvironmentInfo operation. /// <seealso cref="Amazon.ElasticBeanstalk.IAmazonElasticBeanstalk"/> /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RetrieveEnvironmentInfo 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<RetrieveEnvironmentInfoResponse> RetrieveEnvironmentInfoAsync(RetrieveEnvironmentInfoRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); var unmarshaller = RetrieveEnvironmentInfoResponseUnmarshaller.Instance; return InvokeAsync<RetrieveEnvironmentInfoRequest,RetrieveEnvironmentInfoResponse>(request, marshaller, unmarshaller, cancellationToken); }
internal RetrieveEnvironmentInfoResponse RetrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest request) { var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); var unmarshaller = RetrieveEnvironmentInfoResponseUnmarshaller.Instance; return Invoke<RetrieveEnvironmentInfoRequest,RetrieveEnvironmentInfoResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para> Retrieves the compiled information from a RequestEnvironmentInfo request. </para> <para>Related Topics</para> /// <ul> /// <li> RequestEnvironmentInfo </li> /// /// </ul> /// </summary> /// /// <param name="retrieveEnvironmentInfoRequest">Container for the necessary parameters to execute the RetrieveEnvironmentInfo service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the RetrieveEnvironmentInfo service method, as returned by AmazonElasticBeanstalk.</returns> /// public RetrieveEnvironmentInfoResponse RetrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest retrieveEnvironmentInfoRequest) { IRequest<RetrieveEnvironmentInfoRequest> request = new RetrieveEnvironmentInfoRequestMarshaller().Marshall(retrieveEnvironmentInfoRequest); RetrieveEnvironmentInfoResponse response = Invoke<RetrieveEnvironmentInfoRequest, RetrieveEnvironmentInfoResponse> (request, this.signer, RetrieveEnvironmentInfoResponseUnmarshaller.GetInstance()); return response; }
public void RetrieveEnvironmentInfoMarshallTest() { var operation = service_model.FindOperation("RetrieveEnvironmentInfo"); var request = InstantiateClassGenerator.Execute<RetrieveEnvironmentInfoRequest>(); var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); 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 = RetrieveEnvironmentInfoResponseUnmarshaller.Instance.Unmarshall(context) as RetrieveEnvironmentInfoResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
/// <summary> /// <para> Retrieves the compiled information from a RequestEnvironmentInfo request. </para> <para>Related Topics</para> /// <ul> /// <li> RequestEnvironmentInfo </li> /// /// </ul> /// </summary> /// /// <param name="retrieveEnvironmentInfoRequest">Container for the necessary parameters to execute the RetrieveEnvironmentInfo service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the RetrieveEnvironmentInfo service method, as returned by AmazonElasticBeanstalk.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<RetrieveEnvironmentInfoResponse> RetrieveEnvironmentInfoAsync(RetrieveEnvironmentInfoRequest retrieveEnvironmentInfoRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); var unmarshaller = RetrieveEnvironmentInfoResponseUnmarshaller.GetInstance(); return Invoke<IRequest, RetrieveEnvironmentInfoRequest, RetrieveEnvironmentInfoResponse>(retrieveEnvironmentInfoRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// Initiates the asynchronous execution of the RetrieveEnvironmentInfo operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the RetrieveEnvironmentInfo operation on AmazonElasticBeanstalkClient.</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 EndRetrieveEnvironmentInfo /// operation.</returns> public IAsyncResult BeginRetrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest request, AsyncCallback callback, object state) { var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); var unmarshaller = RetrieveEnvironmentInfoResponseUnmarshaller.Instance; return BeginInvoke<RetrieveEnvironmentInfoRequest>(request, marshaller, unmarshaller, callback, state); }
IAsyncResult invokeRetrieveEnvironmentInfo(RetrieveEnvironmentInfoRequest request, AsyncCallback callback, object state, bool synchronized) { var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); var unmarshaller = RetrieveEnvironmentInfoResponseUnmarshaller.Instance; return Invoke(request, callback, state, synchronized, marshaller, unmarshaller, signer); }
/// <summary> /// <para> Retrieves the compiled information from a RequestEnvironmentInfo request. </para> <para>Related Topics</para> /// <ul> /// <li> RequestEnvironmentInfo </li> /// /// </ul> /// </summary> /// /// <param name="retrieveEnvironmentInfoRequest">Container for the necessary parameters to execute the RetrieveEnvironmentInfo service method on /// AmazonElasticBeanstalk.</param> /// /// <returns>The response from the RetrieveEnvironmentInfo service method, as returned by AmazonElasticBeanstalk.</returns> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<RetrieveEnvironmentInfoResponse> RetrieveEnvironmentInfoAsync(RetrieveEnvironmentInfoRequest retrieveEnvironmentInfoRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new RetrieveEnvironmentInfoRequestMarshaller(); var unmarshaller = RetrieveEnvironmentInfoResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, RetrieveEnvironmentInfoRequest, RetrieveEnvironmentInfoResponse>(retrieveEnvironmentInfoRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }