public void DescribeStateMachineForExecutionMarshallTest() { var request = InstantiateClassGenerator.Execute <DescribeStateMachineForExecutionRequest>(); var marshaller = new DescribeStateMachineForExecutionRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var jsonRequest = UTF8Encoding.UTF8.GetString(internalRequest.Content); Comparer.CompareObjectToJson <DescribeStateMachineForExecutionRequest>(request, jsonRequest); var webResponse = new WebResponseData { Headers = { { "x-amzn-RequestId", Guid.NewGuid().ToString() }, { "x-amz-crc32", "0" } } }; var jsonResponse = new JsonSampleGenerator(service_model, service_model.FindOperation("DescribeStateMachineForExecution").ResponseStructure).Execute(); webResponse.Headers.Add("Content-Length", UTF8Encoding.UTF8.GetBytes(jsonResponse).Length.ToString()); UnmarshallerContext context = new JsonUnmarshallerContext(Utils.CreateStreamFromString(jsonResponse), false, webResponse); var response = DescribeStateMachineForExecutionResponseUnmarshaller.Instance.Unmarshall(context) as DescribeStateMachineForExecutionResponse; InstantiateClassGenerator.ValidateObjectFullyInstantiated(response); }
internal virtual DescribeStateMachineForExecutionResponse DescribeStateMachineForExecution(DescribeStateMachineForExecutionRequest request) { var marshaller = new DescribeStateMachineForExecutionRequestMarshaller(); var unmarshaller = DescribeStateMachineForExecutionResponseUnmarshaller.Instance; return(Invoke <DescribeStateMachineForExecutionRequest, DescribeStateMachineForExecutionResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the DescribeStateMachineForExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the DescribeStateMachineForExecution 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/states-2016-11-23/DescribeStateMachineForExecution">REST API Reference for DescribeStateMachineForExecution Operation</seealso> public virtual Task <DescribeStateMachineForExecutionResponse> DescribeStateMachineForExecutionAsync(DescribeStateMachineForExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeStateMachineForExecutionRequestMarshaller(); var unmarshaller = DescribeStateMachineForExecutionResponseUnmarshaller.Instance; return(InvokeAsync <DescribeStateMachineForExecutionRequest, DescribeStateMachineForExecutionResponse>(request, marshaller, unmarshaller, cancellationToken)); }