public SqsSubscriberEndpoint(IAwsConfiguration awsConfiguration)
        {
            if (awsConfiguration == null)
                throw new ArgumentNullException("awsConfiguration");

            awsConfiguration.Validate();

            this.awsConfiguration = awsConfiguration;
        }
Exemple #2
0
        public SnsPublisherEndpoint(IAwsConfiguration awsConfiguration)
        {
            if (awsConfiguration == null)
            {
                throw new ArgumentNullException("awsConfiguration");
            }

            awsConfiguration.Validate();

            this.awsConfiguration = awsConfiguration;
        }
Exemple #3
0
        protected SqsClient(IAwsConfiguration awsConfiguration)
        {
            if (awsConfiguration == null)
                throw new ArgumentNullException("awsConfiguration");

            awsConfiguration.Validate();

            try
            {
                Client = AWSClientFactory.CreateAmazonSQSClient(awsConfiguration.AccessKey, awsConfiguration.SecretKey);
            }
            catch (Exception ex)
            {
                throw new MessagingException(
                    "An error occurred while attempting to access SQS. See inner exception for more details.",
                    ex);
            }
        }
Exemple #4
0
        protected SqsClient(IAwsConfiguration awsConfiguration)
        {
            if (awsConfiguration == null)
            {
                throw new ArgumentNullException("awsConfiguration");
            }

            awsConfiguration.Validate();

            try
            {
                Client = AWSClientFactory.CreateAmazonSQSClient(awsConfiguration.AccessKey, awsConfiguration.SecretKey);
            }
            catch (Exception ex)
            {
                throw new MessagingException(
                          "An error occurred while attempting to access SQS. See inner exception for more details.",
                          ex);
            }
        }
Exemple #5
0
        public AwsS3StorageClient(IAwsConfiguration awsConfiguration)
        {
            awsConfiguration.Validate();

            this.awsConfiguration = awsConfiguration;
        }
Exemple #6
0
        public AwsS3StorageClient(IAwsConfiguration awsConfiguration)
        {
            awsConfiguration.Validate();

            this.awsConfiguration = awsConfiguration;
        }