Пример #1
0
        /// <summary>
        /// <para>Returns the user's sending statistics. The result is a list of data points, representing the last two weeks of sending activity.
        /// </para> <para>Each data point in the list contains statistics for a 15-minute interval.</para> <para>This action is throttled at one request
        /// per second.</para>
        /// </summary>
        ///
        /// <param name="getSendStatisticsRequest">Container for the necessary parameters to execute the GetSendStatistics service method on
        /// AmazonSimpleEmailService.</param>
        ///
        /// <returns>The response from the GetSendStatistics 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 <GetSendStatisticsResponse> GetSendStatisticsAsync(GetSendStatisticsRequest getSendStatisticsRequest, CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller   = new GetSendStatisticsRequestMarshaller();
            var unmarshaller = GetSendStatisticsResponseUnmarshaller.GetInstance();

            return(Invoke <IRequest, GetSendStatisticsRequest, GetSendStatisticsResponse>(getSendStatisticsRequest, marshaller, unmarshaller, signer, cancellationToken));
        }
Пример #2
0
        IAsyncResult invokeGetSendStatistics(GetSendStatisticsRequest getSendStatisticsRequest, AsyncCallback callback, object state, bool synchronized)
        {
            IRequest    irequest     = new GetSendStatisticsRequestMarshaller().Marshall(getSendStatisticsRequest);
            var         unmarshaller = GetSendStatisticsResponseUnmarshaller.GetInstance();
            AsyncResult result       = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller);

            Invoke(result);
            return(result);
        }
Пример #3
0
        /// <summary>
        /// <para>Returns the user's sending statistics. The result is a list of
        /// data points, representing the last two weeks of sending
        /// activity.</para> <para>Each data point in the list contains statistics
        /// for a 15-minute interval.</para>
        /// </summary>
        ///
        /// <param name="getSendStatisticsRequest">Container for the necessary
        ///           parameters to execute the GetSendStatistics service method on
        ///           AmazonSimpleEmailService.</param>
        ///
        /// <returns>The response from the GetSendStatistics service method, as
        ///         returned by AmazonSimpleEmailService.</returns>
        ///
        public GetSendStatisticsResponse GetSendStatistics(GetSendStatisticsRequest getSendStatisticsRequest)
        {
            IRequest <GetSendStatisticsRequest> request  = new GetSendStatisticsRequestMarshaller().Marshall(getSendStatisticsRequest);
            GetSendStatisticsResponse           response = Invoke <GetSendStatisticsRequest, GetSendStatisticsResponse> (request, this.signer, GetSendStatisticsResponseUnmarshaller.GetInstance());

            return(response);
        }