Example #1
0
 private Amazon.Pinpoint.Model.GetEventStreamResponse CallAWSServiceOperation(IAmazonPinpoint client, Amazon.Pinpoint.Model.GetEventStreamRequest request)
 {
     Utils.Common.WriteVerboseEndpointMessage(this, client.Config, "Amazon Pinpoint", "GetEventStream");
     try
     {
         #if DESKTOP
         return(client.GetEventStream(request));
         #elif CORECLR
         return(client.GetEventStreamAsync(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;
     }
 }
 public PinPointServiceProvider()
 {
     this.pinpointService = new AmazonPinpointClient(Amazon.RegionEndpoint.USWest2);
 }
 public FuncPinPointSender(IPinPointServiceProvider provider)
 {
     this.pinpointService = provider.GetAmazonPinpointService();
 }
Example #4
0
        protected override void ProcessRecord()
        {
            base.ProcessRecord();

            Client = CreateClient(_CurrentCredentials, _RegionEndpoint);
        }