public UploadFromAsync ( string sourcePath, CancellationToken cancellationToken = default(CancellationToken) ) : Task | ||
sourcePath | string | Path of the file to be uploaded. |
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
return | Task |
public Task UploadFromAsync(string sourcePath, CancellationToken cancellationToken = default(CancellationToken))
{
return this.s3ClientCache.GetClient(this.RegionAsEndpoint).UploadObjectFromFilePathAsync(this.linker.s3.bucket, this.linker.s3.key, sourcePath, null, cancellationToken);
}