Example #1
0
        internal DeleteIdentityPoolResponse DeleteIdentityPool(DeleteIdentityPoolRequest request)
        {
            DeleteIdentityPoolRequestMarshaller    marshaller = new DeleteIdentityPoolRequestMarshaller();
            DeleteIdentityPoolResponseUnmarshaller instance   = DeleteIdentityPoolResponseUnmarshaller.Instance;

            return(Invoke <DeleteIdentityPoolRequest, DeleteIdentityPoolResponse>(request, marshaller, instance));
        }
Example #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the DeleteIdentityPool operation.
        /// <seealso cref="Amazon.CognitoIdentity.IAmazonCognitoIdentity.DeleteIdentityPool"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the DeleteIdentityPool 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 <DeleteIdentityPoolResponse> DeleteIdentityPoolAsync(DeleteIdentityPoolRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new DeleteIdentityPoolRequestMarshaller();
            var unmarshaller = DeleteIdentityPoolResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, DeleteIdentityPoolRequest, DeleteIdentityPoolResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
Example #3
0
        public void DeleteIdentityPoolAsync(DeleteIdentityPoolRequest request, AmazonServiceCallback <DeleteIdentityPoolRequest, DeleteIdentityPoolResponse> callback, AsyncOptions options = null)
        {
            options = ((options == null) ? new AsyncOptions() : options);
            DeleteIdentityPoolRequestMarshaller    marshaller = new DeleteIdentityPoolRequestMarshaller();
            DeleteIdentityPoolResponseUnmarshaller instance   = DeleteIdentityPoolResponseUnmarshaller.Instance;
            Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;

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