public void SimpleEmailServiceGetSendQuota() { #region getsendquota-1469047324508 var response = client.GetSendQuota(new GetSendQuotaRequest { }); double max24HourSend = response.Max24HourSend; double maxSendRate = response.MaxSendRate; double sentLast24Hours = response.SentLast24Hours; #endregion }
private Amazon.SimpleEmail.Model.GetSendQuotaResponse CallAWSServiceOperation(IAmazonSimpleEmailService client, Amazon.SimpleEmail.Model.GetSendQuotaRequest request) { Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Simple Email Service (SES)", "GetSendQuota"); try { #if DESKTOP return(client.GetSendQuota(request)); #elif CORECLR return(client.GetSendQuotaAsync(request).GetAwaiter().GetResult()); #else #error "Unknown build edition" #endif } catch (AmazonServiceException exc) { var webException = exc.InnerException as System.Net.WebException; if (webException != null) { throw new Exception(Utils.Common.FormatNameResolutionFailureMessage(client.Config, webException.Message), webException); } throw; } }