예제 #1
0
        /// <summary>
        /// <para>Verifies an email address. This action causes a confirmation email message to be sent to the specified address.</para> <para>This
        /// action is throttled at one request per second.</para>
        /// </summary>
        ///
        /// <param name="verifyEmailIdentityRequest">Container for the necessary parameters to execute the VerifyEmailIdentity service method on
        /// AmazonSimpleEmailService.</param>
        ///
        /// <returns>The response from the VerifyEmailIdentity service method, as returned by AmazonSimpleEmailService.</returns>
        /// <param name="cancellationToken">
        ///     A cancellation token that can be used by other objects or threads to receive notice of cancellation.
        /// </param>
        public Task <VerifyEmailIdentityResponse> VerifyEmailIdentityAsync(VerifyEmailIdentityRequest verifyEmailIdentityRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new VerifyEmailIdentityRequestMarshaller();
            var unmarshaller = VerifyEmailIdentityResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, VerifyEmailIdentityRequest, VerifyEmailIdentityResponse>(verifyEmailIdentityRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
예제 #2
0
        internal VerifyEmailIdentityResponse VerifyEmailIdentity(VerifyEmailIdentityRequest request)
        {
            var marshaller   = new VerifyEmailIdentityRequestMarshaller();
            var unmarshaller = VerifyEmailIdentityResponseUnmarshaller.Instance;

            return(Invoke <VerifyEmailIdentityRequest, VerifyEmailIdentityResponse>(request, marshaller, unmarshaller));
        }
예제 #3
0
        /// <summary>
        /// Initiates the asynchronous execution of the VerifyEmailIdentity operation.
        /// </summary>
        ///
        /// <param name="request">Container for the necessary parameters to execute the VerifyEmailIdentity 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 <VerifyEmailIdentityResponse> VerifyEmailIdentityAsync(VerifyEmailIdentityRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new VerifyEmailIdentityRequestMarshaller();
            var unmarshaller = VerifyEmailIdentityResponseUnmarshaller.Instance;

            return(InvokeAsync <VerifyEmailIdentityRequest, VerifyEmailIdentityResponse>(request, marshaller,
                                                                                         unmarshaller, cancellationToken));
        }
예제 #4
0
        public async Task AddEmail(string email)
        {
            VerifyEmailIdentityRequest request = new VerifyEmailIdentityRequest {
                EmailAddress = email
            };
            ListIdentitiesRequest req = new ListIdentitiesRequest {
                IdentityType = IdentityType.EmailAddress
            };
            var res = await _Client.ListIdentitiesAsync(req);

            await _Client.VerifyEmailIdentityAsync(request);
        }
예제 #5
0
        public static void SESVerifyEmailIdentity()
        {
            #region SESVerifyEmailIdentity
            var sesClient = new AmazonSimpleEmailServiceClient();

            var request = new VerifyEmailIdentityRequest
            {
                EmailAddress = "*****@*****.**"
            };

            sesClient.VerifyEmailIdentity(request);
            #endregion
        }
예제 #6
0
        internal VerifyEmailIdentityResponse VerifyEmailIdentity(VerifyEmailIdentityRequest request)
        {
            var task = VerifyEmailIdentityAsync(request);

            try
            {
                return(task.Result);
            }
            catch (AggregateException e)
            {
                ExceptionDispatchInfo.Capture(e.InnerException).Throw();
                return(null);
            }
        }