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); }
public IAwsRepository GetAwsRepository(IAwsBucketConfiguration configuration) { return(new AwsRepository(new AwsBucket(configuration))); }