예제 #1
0
        internal virtual DescribeFlowResponse DescribeFlow(DescribeFlowRequest request)
        {
            var marshaller   = DescribeFlowRequestMarshaller.Instance;
            var unmarshaller = DescribeFlowResponseUnmarshaller.Instance;

            return(Invoke <DescribeFlowRequest, DescribeFlowResponse>(request, marshaller, unmarshaller));
        }
예제 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeFlow operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribeFlow 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/mediaconnect-2018-11-14/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso>
        public virtual Task <DescribeFlowResponse> DescribeFlowAsync(DescribeFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = DescribeFlowRequestMarshaller.Instance;
            var unmarshaller = DescribeFlowResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribeFlowRequest, DescribeFlowResponse>(request, marshaller,
                                                                           unmarshaller, cancellationToken));
        }
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeFlow operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribeFlow 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/mediaconnect-2018-11-14/DescribeFlow">REST API Reference for DescribeFlow Operation</seealso>
        public virtual Task <DescribeFlowResponse> DescribeFlowAsync(DescribeFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribeFlowRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribeFlowResponse>(request, options, cancellationToken));
        }
        internal virtual DescribeFlowResponse DescribeFlow(DescribeFlowRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribeFlowRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribeFlowResponseUnmarshaller.Instance;

            return(Invoke <DescribeFlowResponse>(request, options));
        }
예제 #5
0
 /// <summary>
 /// 本接口(DescribeFlow)用于查询流程状态。
 /// </summary>
 /// <param name="req">参考<see cref="DescribeFlowRequest"/></param>
 /// <returns>参考<see cref="DescribeFlowResponse"/>实例</returns>
 public async Task<DescribeFlowResponse> DescribeFlow(DescribeFlowRequest req)
 {
      JsonResponseModel<DescribeFlowResponse> rsp = null;
      try
      {
          var strResp = await this.InternalRequest(req, "DescribeFlow");
          rsp = JsonConvert.DeserializeObject<JsonResponseModel<DescribeFlowResponse>>(strResp);
      }
      catch (JsonSerializationException e)
      {
          throw new TencentCloudSDKException(e.Message);
      }
      return rsp.Response;
 }