예제 #1
0
        public SqsSubscriberEndpoint(IAwsConfiguration awsConfiguration)
        {
            if (awsConfiguration == null)
                throw new ArgumentNullException("awsConfiguration");

            awsConfiguration.Validate();

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

            awsConfiguration.Validate();

            this.awsConfiguration = awsConfiguration;
        }
예제 #3
0
파일: SqsClient.cs 프로젝트: sonbua/Mantle
        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);
            }
        }
예제 #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);
            }
        }
예제 #5
0
        public AwsS3StorageClient(IAwsConfiguration awsConfiguration)
        {
            awsConfiguration.Validate();

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

            this.awsConfiguration = awsConfiguration;
        }