コード例 #1
0
        internal ListIdentityPoolsResponse ListIdentityPools(ListIdentityPoolsRequest request)
        {
            ListIdentityPoolsRequestMarshaller    marshaller = new ListIdentityPoolsRequestMarshaller();
            ListIdentityPoolsResponseUnmarshaller instance   = ListIdentityPoolsResponseUnmarshaller.Instance;

            return(Invoke <ListIdentityPoolsRequest, ListIdentityPoolsResponse>(request, marshaller, instance));
        }
コード例 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the ListIdentityPools operation.
        /// <seealso cref="Amazon.CognitoIdentity.IAmazonCognitoIdentity.ListIdentityPools"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the ListIdentityPools 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>
        public Task <ListIdentityPoolsResponse> ListIdentityPoolsAsync(ListIdentityPoolsRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new ListIdentityPoolsRequestMarshaller();
            var unmarshaller = ListIdentityPoolsResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, ListIdentityPoolsRequest, ListIdentityPoolsResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
コード例 #3
0
        public void ListIdentityPoolsAsync(ListIdentityPoolsRequest request, AmazonServiceCallback <ListIdentityPoolsRequest, ListIdentityPoolsResponse> callback, AsyncOptions options = null)
        {
            options = ((options == null) ? new AsyncOptions() : options);
            ListIdentityPoolsRequestMarshaller    marshaller = new ListIdentityPoolsRequestMarshaller();
            ListIdentityPoolsResponseUnmarshaller instance   = ListIdentityPoolsResponseUnmarshaller.Instance;
            Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;

            if (callback != null)
            {
                callbackHelper = delegate(AmazonWebServiceRequest req, AmazonWebServiceResponse res, Exception ex, AsyncOptions ao)
                {
                    AmazonServiceResult <ListIdentityPoolsRequest, ListIdentityPoolsResponse> responseObject = new AmazonServiceResult <ListIdentityPoolsRequest, ListIdentityPoolsResponse>((ListIdentityPoolsRequest)req, (ListIdentityPoolsResponse)res, ex, ao.State);
                    callback(responseObject);
                };
            }
            BeginInvoke(request, marshaller, instance, options, callbackHelper);
        }