예제 #1
0
        internal UnlinkIdentityResponse UnlinkIdentity(UnlinkIdentityRequest request)
        {
            UnlinkIdentityRequestMarshaller    marshaller = new UnlinkIdentityRequestMarshaller();
            UnlinkIdentityResponseUnmarshaller instance   = UnlinkIdentityResponseUnmarshaller.Instance;

            return(Invoke <UnlinkIdentityRequest, UnlinkIdentityResponse>(request, marshaller, instance));
        }
예제 #2
0
        /// <summary>
        /// Initiates the asynchronous execution of the UnlinkIdentity operation.
        /// <seealso cref="Amazon.CognitoIdentity.IAmazonCognitoIdentity.UnlinkIdentity"/>
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the UnlinkIdentity 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 <UnlinkIdentityResponse> UnlinkIdentityAsync(UnlinkIdentityRequest request, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new UnlinkIdentityRequestMarshaller();
            var unmarshaller = UnlinkIdentityResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, UnlinkIdentityRequest, UnlinkIdentityResponse>(request, marshaller, unmarshaller, signer, cancellationToken));
        }
예제 #3
0
        public void UnlinkIdentityAsync(UnlinkIdentityRequest request, AmazonServiceCallback <UnlinkIdentityRequest, UnlinkIdentityResponse> callback, AsyncOptions options = null)
        {
            options = ((options == null) ? new AsyncOptions() : options);
            UnlinkIdentityRequestMarshaller    marshaller = new UnlinkIdentityRequestMarshaller();
            UnlinkIdentityResponseUnmarshaller instance   = UnlinkIdentityResponseUnmarshaller.Instance;
            Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;

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