public Task <PutObjectResponse> PutObjectAsync(string bucketName, string resource, Stream data, Action <PutObjectRequest> config = null, CancellationToken token = default) { PutObjectRequest req = new PutObjectRequest(bucketName, resource, data); config?.Invoke(req); return(_operations.PutAsync(req, token)); }
public async Task <PutObjectResponse> ExecuteAsync(CancellationToken token = default) { PutObjectResponse response = await _objectOperations.PutAsync(_request, token).ConfigureAwait(false); if (_ownStream) { _request.Content.Dispose(); } return(response); }