Example #1
0
        internal virtual StopFlowResponse StopFlow(StopFlowRequest request)
        {
            var marshaller   = StopFlowRequestMarshaller.Instance;
            var unmarshaller = StopFlowResponseUnmarshaller.Instance;

            return(Invoke <StopFlowRequest, StopFlowResponse>(request, marshaller, unmarshaller));
        }
Example #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the StopFlow operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the StopFlow 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/StopFlow">REST API Reference for StopFlow Operation</seealso>
        public virtual Task <StopFlowResponse> StopFlowAsync(StopFlowRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = StopFlowRequestMarshaller.Instance;
            var unmarshaller = StopFlowResponseUnmarshaller.Instance;

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

            options.RequestMarshaller    = StopFlowRequestMarshaller.Instance;
            options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance;

            return(InvokeAsync <StopFlowResponse>(request, options, cancellationToken));
        }
        internal virtual StopFlowResponse StopFlow(StopFlowRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = StopFlowRequestMarshaller.Instance;
            options.ResponseUnmarshaller = StopFlowResponseUnmarshaller.Instance;

            return(Invoke <StopFlowResponse>(request, options));
        }