Esempio n. 1
0
        internal ExpireSessionResponse ExpireSession(ExpireSessionRequest request)
        {
            var marshaller   = new ExpireSessionRequestMarshaller();
            var unmarshaller = ExpireSessionResponseUnmarshaller.Instance;

            return(Invoke <ExpireSessionRequest, ExpireSessionResponse>(request, marshaller, unmarshaller));
        }
Esempio n. 2
0
        /// <summary>
        /// Initiates the asynchronous execution of the ExpireSession operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the ExpireSession 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/ExpireSession">REST API Reference for ExpireSession Operation</seealso>
        public Task <ExpireSessionResponse> ExpireSessionAsync(ExpireSessionRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new ExpireSessionRequestMarshaller();
            var unmarshaller = ExpireSessionResponseUnmarshaller.Instance;

            return(InvokeAsync <ExpireSessionRequest, ExpireSessionResponse>(request, marshaller,
                                                                             unmarshaller, cancellationToken));
        }