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

            return(amazonSnsClient);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 3
0
 public SnsClient(IAmazonSimpleNotificationService client, SnsSettings settings)
 {
     this.client   = client;
     this.settings = settings;
 }