Пример #1
0
        internal DescribeSessionsResponse DescribeSessions(DescribeSessionsRequest request)
        {
            var marshaller   = new DescribeSessionsRequestMarshaller();
            var unmarshaller = DescribeSessionsResponseUnmarshaller.Instance;

            return(Invoke <DescribeSessionsRequest, DescribeSessionsResponse>(request, marshaller, unmarshaller));
        }
Пример #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeSessions operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribeSessions 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/appstream-2016-12-01/DescribeSessions">REST API Reference for DescribeSessions Operation</seealso>
        public Task <DescribeSessionsResponse> DescribeSessionsAsync(DescribeSessionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new DescribeSessionsRequestMarshaller();
            var unmarshaller = DescribeSessionsResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribeSessionsRequest, DescribeSessionsResponse>(request, marshaller,
                                                                                   unmarshaller, cancellationToken));
        }