Example #1
0
        public static IAmazonSimpleNotificationService Create(SnsSettings settings)
        {
            var amazonSnsClient = new AmazonSimpleNotificationServiceClient(new AmazonSimpleNotificationServiceConfig()
            {
                ServiceURL = settings.ServiceURL
            });

            return(amazonSnsClient);
        }
Example #2
0
        static void Setup()
        {
            var amazonSnsConfig = new AmazonSimpleNotificationServiceConfig()
            {
                ServiceURL = snsUrl
            };
            var amazonSnsClient = new AmazonSimpleNotificationServiceClient(amazonSnsConfig);

            var settings = new SnsSettings()
            {
                ServiceURL = snsUrl,
                TopicArn   = snsTopicArn
            };

            client = new SnsClient(amazonSnsClient, settings);
        }
Example #3
0
 public SnsClient(IAmazonSimpleNotificationService client, SnsSettings settings)
 {
     this.client   = client;
     this.settings = settings;
 }