示例#1
0
        internal UpdateIdentityPoolResponse UpdateIdentityPool(UpdateIdentityPoolRequest request)
        {
            UpdateIdentityPoolRequestMarshaller    marshaller = new UpdateIdentityPoolRequestMarshaller();
            UpdateIdentityPoolResponseUnmarshaller instance   = UpdateIdentityPoolResponseUnmarshaller.Instance;

            return(Invoke <UpdateIdentityPoolRequest, UpdateIdentityPoolResponse>(request, marshaller, instance));
        }
示例#2
0
        /// <summary>
        /// Initiates the asynchronous execution of the UpdateIdentityPool operation.
        /// <seealso cref="Amazon.CognitoIdentity.IAmazonCognitoIdentity.UpdateIdentityPool"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the UpdateIdentityPool 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 <UpdateIdentityPoolResponse> UpdateIdentityPoolAsync(UpdateIdentityPoolRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new UpdateIdentityPoolRequestMarshaller();
            var unmarshaller = UpdateIdentityPoolResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, UpdateIdentityPoolRequest, UpdateIdentityPoolResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
示例#3
0
        public void UpdateIdentityPoolAsync(UpdateIdentityPoolRequest request, AmazonServiceCallback <UpdateIdentityPoolRequest, UpdateIdentityPoolResponse> callback, AsyncOptions options = null)
        {
            options = ((options == null) ? new AsyncOptions() : options);
            UpdateIdentityPoolRequestMarshaller    marshaller = new UpdateIdentityPoolRequestMarshaller();
            UpdateIdentityPoolResponseUnmarshaller instance   = UpdateIdentityPoolResponseUnmarshaller.Instance;
            Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;

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