Ejemplo n.º 1
0
        /// <summary>
        /// <para>Verifies an email address. This action causes a confirmation email message to be sent to the specified address.</para>
        /// <para><b>IMPORTANT:</b>The VerifyEmailAddress action is deprecated as of the May 15, 2012 release of Domain Verification. The
        /// VerifyEmailIdentity action is now preferred.</para> <para>This action is throttled at one request per second.</para>
        /// </summary>
        ///
        /// <param name="verifyEmailAddressRequest">Container for the necessary parameters to execute the VerifyEmailAddress service method on
        /// AmazonSimpleEmailService.</param>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        public Task <VerifyEmailAddressResponse> VerifyEmailAddressAsync(VerifyEmailAddressRequest verifyEmailAddressRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new VerifyEmailAddressRequestMarshaller();
            var unmarshaller = VerifyEmailAddressResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, VerifyEmailAddressRequest, VerifyEmailAddressResponse>(verifyEmailAddressRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Ejemplo n.º 2
0
        IAsyncResult invokeVerifyEmailAddress(VerifyEmailAddressRequest verifyEmailAddressRequest, AsyncCallback callback, object state, bool synchronized)
        {
            IRequest    irequest     = new VerifyEmailAddressRequestMarshaller().Marshall(verifyEmailAddressRequest);
            var         unmarshaller = VerifyEmailAddressResponseUnmarshaller.GetInstance();
            AsyncResult result       = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);

            Invoke(result);
            return(result);
        }
Ejemplo n.º 3
0
        /// <summary>
        /// <para>Verifies an email address. This action causes a confirmation
        /// email message to be sent to the specified address.</para>
        /// </summary>
        ///
        /// <param name="verifyEmailAddressRequest">Container for the necessary
        ///           parameters to execute the VerifyEmailAddress service method on
        ///           AmazonSimpleEmailService.</param>
        ///
        public VerifyEmailAddressResponse VerifyEmailAddress(VerifyEmailAddressRequest verifyEmailAddressRequest)
        {
            IRequest <VerifyEmailAddressRequest> request  = new VerifyEmailAddressRequestMarshaller().Marshall(verifyEmailAddressRequest);
            VerifyEmailAddressResponse           response = Invoke <VerifyEmailAddressRequest, VerifyEmailAddressResponse> (request, this.signer, VerifyEmailAddressResponseUnmarshaller.GetInstance());

            return(response);
        }