public static Task AppendBytesAsync(this CloudBlob blob, byte[] buffer, string leaseId, CancellationToken cancellationToken = default(CancellationToken)) { var stream = new MemoryStream(buffer); return(blob.AppendStreamAsync(stream, leaseId, cancellationToken)); }