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); } }
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 }
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); } }