public AmazonS3Storage(IStorageConfigure configure)
            : this(configure.Prefix)
        {
            AmazonS3Config amazonS3Config = new AmazonS3Config()
            {
                RegionEndpoint = RegionEndpoint.GetBySystemName(configure.ConfigureDetail.DefaultValue("region"))
            };

            bucketName     = configure.ConfigureDetail.DefaultValue("bucket");
            amazonS3Client = new AmazonS3Client(amazonS3Config);
        }
Exemple #2
0
 public LocalFileSystemStorage(IStorageConfigure configure)
     : this(configure.Prefix)
 {
 }
        public AmazonS3ConfigureTests()
        {
            IStorage storage = StorageFactory.Factory.GetLocalStorage(ConstVariable.ApplicationPath);

            s3Configure = StorageConfigureFactory.Factory.CreateConfigure(storage, "MockData/Core/Configure/s3configure.json");
        }