Example #1
0
        internal CreateIdentityPoolResponse CreateIdentityPool(CreateIdentityPoolRequest request)
        {
            CreateIdentityPoolRequestMarshaller    marshaller = new CreateIdentityPoolRequestMarshaller();
            CreateIdentityPoolResponseUnmarshaller instance   = CreateIdentityPoolResponseUnmarshaller.Instance;

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

            return(Invoke <IRequest, CreateIdentityPoolRequest, CreateIdentityPoolResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
Example #3
0
        public void CreateIdentityPoolAsync(CreateIdentityPoolRequest request, AmazonServiceCallback <CreateIdentityPoolRequest, CreateIdentityPoolResponse> callback, AsyncOptions options = null)
        {
            options = ((options == null) ? new AsyncOptions() : options);
            CreateIdentityPoolRequestMarshaller    marshaller = new CreateIdentityPoolRequestMarshaller();
            CreateIdentityPoolResponseUnmarshaller instance   = CreateIdentityPoolResponseUnmarshaller.Instance;
            Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;

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