public TopicRepository(AmazonAccountSettings amazonAccountSettings, IAmazonSnsFacade amazonSnsFacade)
        {
            amazonAccountSettings.Requires("amazonAccountSettings").IsNotNull();
            amazonSnsFacade.Requires("amazonSnsFacade").IsNotNull();

            this.amazonAccountSettings = amazonAccountSettings;
            this.amazonSnsFacade       = amazonSnsFacade;
        }
Esempio n. 2
0
        public AmazonSqsFacade(AmazonAccountSettings amazonAccountSettings)
        {
            amazonAccountSettings.Requires("amazonAccountSettings").IsNotNull();

            amazonSqsFactory = () =>
                               AWSClientFactory.CreateAmazonSQSClient(amazonAccountSettings.AccessKey,
                                                                      amazonAccountSettings.SecretKey,
                                                                      amazonAccountSettings.RegionEndPoint.
                                                                      ToRegionEndpoint());
        }