Esempio n. 1
0
        public AwsBucket(IAwsBucketConfiguration configuration)
        {
            if (configuration == null)
            {
                throw new ArgumentNullException(nameof(configuration));
            }

            BucketPath = $"{configuration.Bucket}{configuration.Directory}";

            var bucketRegion = RegionEndpoint.GetBySystemName(configuration.RegionEndpoint);

            _client = new AmazonS3Client(bucketRegion);
        }
Esempio n. 2
0
 public IAwsRepository GetAwsRepository(IAwsBucketConfiguration configuration)
 {
     return(new AwsRepository(new AwsBucket(configuration)));
 }