示例#1
0
        protected AwsTask(AwsTargetConfigurationElement awsConfig)
        {
            if (awsConfig == null)
            {
                throw new ArgumentNullException("awsConfig", "awsConfig cannot be null.");
            }

            EnsureServicePointInitialized();
            this.AwsConfig = awsConfig;

            AmazonS3Config sthreeConfig = new AmazonS3Config()
            {
                CommunicationProtocol = SThreeQLConfiguration.Section.UseSsl ? Protocol.HTTPS : Protocol.HTTP
            };

            this.S3Client = AWSClientFactory.CreateAmazonS3Client(awsConfig.AwsAccessKeyId, awsConfig.AwsSecretAccessKeyId, sthreeConfig);
        }
示例#2
0
        protected AwsTask(AwsTargetConfigurationElement awsConfig)
        {
            if (awsConfig == null)
            {
                throw new ArgumentNullException("awsConfig", "awsConfig cannot be null.");
            }

            EnsureServicePointInitialized();
            this.AwsConfig = awsConfig;

            AmazonS3Config sthreeConfig = new AmazonS3Config()
            {
                CommunicationProtocol = SThreeQLConfiguration.Section.UseSsl ? Protocol.HTTPS : Protocol.HTTP
            };

            this.S3Client = AWSClientFactory.CreateAmazonS3Client(awsConfig.AwsAccessKeyId, awsConfig.AwsSecretAccessKeyId, sthreeConfig);
        }