public static int DownloadToByteArray(this CloudAppendBlob blob, byte[] buffer, int index) { return(blob.DownloadToByteArrayAsync(buffer, index).Result); }