Пример #1
0
        internal virtual StopChannelResponse StopChannel(StopChannelRequest request)
        {
            var marshaller   = new StopChannelRequestMarshaller();
            var unmarshaller = StopChannelResponseUnmarshaller.Instance;

            return(Invoke <StopChannelRequest, StopChannelResponse>(request, marshaller, unmarshaller));
        }
Пример #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the StopChannel operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the StopChannel 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/medialive-2017-10-14/StopChannel">REST API Reference for StopChannel Operation</seealso>
        public virtual Task <StopChannelResponse> StopChannelAsync(StopChannelRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new StopChannelRequestMarshaller();
            var unmarshaller = StopChannelResponseUnmarshaller.Instance;

            return(InvokeAsync <StopChannelRequest, StopChannelResponse>(request, marshaller,
                                                                         unmarshaller, cancellationToken));
        }