public void Copy() { using (AWS_S3_Client client = new AWS_S3_Client(AmazonS3ServiceURL, AmazonS3AccessKey, AmazonS3SecretKey)) { Boolean ret = client.Copy(@"C:/development/test.txt", backet_name, "ean/t12"); Boolean ret2 = client.Copy(@"C:/development/test.txt", backet_name, "ean/t11"); } }
public void ParrallelUploadFile() { using (AWS_S3_Client client = new AWS_S3_Client(AmazonS3ServiceURL, AmazonS3AccessKey, AmazonS3SecretKey)) { String[] FileList = { @"C:/development/test.txt", @"C:\development\NuGet_Library\AWS_S3Writer.1.0.0.nupkg" }; Parallel.ForEach(FileList, new ParallelOptions { MaxDegreeOfParallelism = 8 }, (st) => { Boolean ret = client.Copy(st, backet_name, "ean1/t121"); }); } }