private Amazon.PinpointEmail.Model.SendEmailResponse CallAWSServiceOperation(IAmazonPinpointEmail client, Amazon.PinpointEmail.Model.SendEmailRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Pinpoint Email", "SendEmail");
     try
     {
         #if DESKTOP
         return(client.SendEmail(request));
         #elif CORECLR
         return(client.SendEmailAsync(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;
     }
 }
 internal ListDeliverabilityTestReportsPaginator(IAmazonPinpointEmail client, ListDeliverabilityTestReportsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListConfigurationSetsPaginator(IAmazonPinpointEmail client, ListConfigurationSetsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #4
0
 internal ListDedicatedIpPoolsPaginator(IAmazonPinpointEmail client, ListDedicatedIpPoolsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal ListEmailIdentitiesPaginator(IAmazonPinpointEmail client, ListEmailIdentitiesRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal GetDedicatedIpsPaginator(IAmazonPinpointEmail client, GetDedicatedIpsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
Beispiel #7
0
 internal ListDomainDeliverabilityCampaignsPaginator(IAmazonPinpointEmail client, ListDomainDeliverabilityCampaignsRequest request)
 {
     this._client  = client;
     this._request = request;
 }
 internal PinpointEmailPaginatorFactory(IAmazonPinpointEmail client)
 {
     this.client = client;
 }
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }