protected override async Task AppendInternal(bool async, CancellationToken cancellationToken) { if (_buffer.Length > 0) { _buffer.Position = 0; Response <PageInfo> response = await _pageBlobClient.UploadPagesInternal( content : _buffer, offset : _writeIndex, options : new PageBlobUploadPagesOptions() { TransactionalHashingOptions = _hashingOptions, Conditions = _conditions, ProgressHandler = _progressHandler }, async : async, cancellationToken : cancellationToken) .ConfigureAwait(false); _conditions.IfMatch = response.Value.ETag; _writeIndex += _buffer.Length; _buffer.Clear(); } }