Example #1
0
        public async Task Test_Meta()
        {
            //Upload
            UploadSettings settings = CakeHelper.CreateEnvironment().CreateUploadSettings();

            settings.BucketName = "cake-aws-s3";

            IS3Manager manager = CakeHelper.CreateS3Manager();
            await manager.Upload(new FilePath("./Files/Encoding.txt"), "Encodings.txt", settings);



            //Get Meta
            MetadataCollection meta = await manager.GetObjectMetaData("Encodings.txt", "", settings);

            string metaHash = meta["x-amz-meta-hashtag"];
        }
Example #2
0
        public void Test_Meta()
        {
            //Upload
            UploadSettings settings = CakeHelper.CreateEnvironment().CreateUploadSettings();

            settings.BucketName = "cake-aws-s3";

            IS3Manager manager = CakeHelper.CreateS3Manager();

            manager.Upload(new FilePath("../../packages.config"), "packages.config", settings);



            //Get Meta
            MetadataCollection meta = manager.GetObjectMetaData("packages.config", "", settings);

            string metaHash = meta["x-amz-meta-hashtag"];
        }