Last active
January 19, 2016 12:33
-
-
Save TerribleDev/9421c16280cdc04ca80f to your computer and use it in GitHub Desktop.
uploading to S3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task UploadArtifact(S3Config config, IAmazonS3 s3Client) | |
{ | |
using(var utility = new TransferUtility(s3Client)) | |
{ | |
Console.WriteLine($"Uploading artifact {config.ArtifactRelativePath} {config.Key}"); | |
await utility.UploadAsync(filePath: config.ArtifactRelativePath, bucketName: config.S3Bucket, key: config.Key); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment