コード例 #1
0
        /// <summary>
        /// Initiates the asynchronous execution of the DescribeUserProfile operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DescribeUserProfile 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/codestar-2017-04-19/DescribeUserProfile">REST API Reference for DescribeUserProfile Operation</seealso>
        public virtual Task <DescribeUserProfileResponse> DescribeUserProfileAsync(DescribeUserProfileRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = DescribeUserProfileRequestMarshaller.Instance;
            var unmarshaller = DescribeUserProfileResponseUnmarshaller.Instance;

            return(InvokeAsync <DescribeUserProfileRequest, DescribeUserProfileResponse>(request, marshaller,
                                                                                         unmarshaller, cancellationToken));
        }
コード例 #2
0
        internal virtual DescribeUserProfileResponse DescribeUserProfile(DescribeUserProfileRequest request)
        {
            var options = new InvokeOptions();

            options.RequestMarshaller    = DescribeUserProfileRequestMarshaller.Instance;
            options.ResponseUnmarshaller = DescribeUserProfileResponseUnmarshaller.Instance;

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