Exemplo n.º 1
0
 public async Task RemoveEndpoint(string endpointArn)
 {
     log.Info("RemoveEndpoint:" + endpointArn);
     try
     {
         client.DeleteEndpoint(new DeleteEndpointRequest()
         {
             EndpointArn = endpointArn
         });
     }
     catch (Exception e)
     {
         log.ErrorFormat("RemoveEndpoint: Error: {0}", e);
     }
 }
Exemplo n.º 2
0
        public static void SNSMobilePushAPIsDeletePlatformEndpoint()
        {
            #region SNSMobilePushAPIsDeletePlatformEndpoint
            var snsClient = new AmazonSimpleNotificationServiceClient();

            var request = new DeleteEndpointRequest
            {
                EndpointArn = "arn:aws:sns:us-east-1:80398EXAMPLE:" +
                              "endpoint/GCM/TimeCardProcessingApplication/" +
                              "d84b5f0d-7136-3bbe-9b42-4e001EXAMPLE"
            };

            snsClient.DeleteEndpoint(request);
            #endregion
        }
Exemplo n.º 3
0
 public void DeleteEndpoint(string endpointarn)
 {
     try
     {
         using (var snsclient = new AmazonSimpleNotificationServiceClient(_accesskey, _secretkey))
         {
             snsclient.DeleteEndpoint(new DeleteEndpointRequest()
             {
                 EndpointArn = endpointarn
             });
         }
     }
     catch (Exception ex)
     {
         throw new Exception("DeleteEndpoint " + ex.Message);
     }
 }