public UploadStreamAsync ( Stream stream, CancellationToken cancellationToken = default(CancellationToken) ) : Task | ||
stream | Stream | Stream to be uploaded to Amazon S3. |
cancellationToken | CancellationToken | A cancellation token that can be used by other objects or threads to receive notice of cancellation. |
return | Task |
public Task UploadStreamAsync(Stream stream, CancellationToken cancellationToken = default(CancellationToken))
{
return this.s3ClientCache.GetClient(this.RegionAsEndpoint).UploadObjectFromStreamAsync(this.linker.s3.bucket, this.linker.s3.key, stream, null, cancellationToken);
}