Exemple #1
0
        /// <summary>
        /// <para>Returns a list containing all of the identities (email addresses and domains) for a specific AWS Account, regardless of verification
        /// status.</para> <para>This action is throttled at one request per second.</para>
        /// </summary>
        ///
        /// <param name="listIdentitiesRequest">Container for the necessary parameters to execute the ListIdentities service method on
        /// AmazonSimpleEmailService.</param>
        ///
        /// <returns>The response from the ListIdentities 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 <ListIdentitiesResponse> ListIdentitiesAsync(ListIdentitiesRequest listIdentitiesRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new ListIdentitiesRequestMarshaller();
            var unmarshaller = ListIdentitiesResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, ListIdentitiesRequest, ListIdentitiesResponse>(listIdentitiesRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Exemple #2
0
        internal ListIdentitiesResponse ListIdentities(ListIdentitiesRequest request)
        {
            ListIdentitiesRequestMarshaller    marshaller = new ListIdentitiesRequestMarshaller();
            ListIdentitiesResponseUnmarshaller instance   = ListIdentitiesResponseUnmarshaller.Instance;

            return(Invoke <ListIdentitiesRequest, ListIdentitiesResponse>(request, marshaller, instance));
        }
Exemple #3
0
        public void ListIdentitiesAsync(ListIdentitiesRequest request, AmazonServiceCallback <ListIdentitiesRequest, ListIdentitiesResponse> callback, AsyncOptions options = null)
        {
            options = ((options == null) ? new AsyncOptions() : options);
            ListIdentitiesRequestMarshaller    marshaller = new ListIdentitiesRequestMarshaller();
            ListIdentitiesResponseUnmarshaller instance   = ListIdentitiesResponseUnmarshaller.Instance;
            Action <AmazonWebServiceRequest, AmazonWebServiceResponse, Exception, AsyncOptions> callbackHelper = null;

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