internal virtual StopExecutionResponse StopExecution(StopExecutionRequest request) { var marshaller = new StopExecutionRequestMarshaller(); var unmarshaller = StopExecutionResponseUnmarshaller.Instance; return(Invoke <StopExecutionRequest, StopExecutionResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the StopExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopExecution 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/StopExecution">REST API Reference for StopExecution Operation</seealso> public virtual Task <StopExecutionResponse> StopExecutionAsync(StopExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new StopExecutionRequestMarshaller(); var unmarshaller = StopExecutionResponseUnmarshaller.Instance; return(InvokeAsync <StopExecutionRequest, StopExecutionResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the StopExecution operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the StopExecution 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/StopExecution">REST API Reference for StopExecution Operation</seealso> public virtual Task <StopExecutionResponse> StopExecutionAsync(StopExecutionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = StopExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopExecutionResponseUnmarshaller.Instance; return(InvokeAsync <StopExecutionResponse>(request, options, cancellationToken)); }
internal virtual StopExecutionResponse StopExecution(StopExecutionRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = StopExecutionRequestMarshaller.Instance; options.ResponseUnmarshaller = StopExecutionResponseUnmarshaller.Instance; return(Invoke <StopExecutionResponse>(request, options)); }
/// <summary> /// 终止某个状态机 /// </summary> /// <param name="req"><see cref="StopExecutionRequest"/></param> /// <returns><see cref="StopExecutionResponse"/></returns> public StopExecutionResponse StopExecutionSync(StopExecutionRequest req) { JsonResponseModel <StopExecutionResponse> rsp = null; try { var strResp = this.InternalRequestSync(req, "StopExecution"); rsp = JsonConvert.DeserializeObject <JsonResponseModel <StopExecutionResponse> >(strResp); } catch (JsonSerializationException e) { throw new TencentCloudSDKException(e.Message); } return(rsp.Response); }