Skip to content

Commit

Permalink
Changed ordering of numbers written to console from 1223467 to 1234567
Browse files Browse the repository at this point in the history
  • Loading branch information
3141592654 committed Jun 14, 2020
1 parent 9483db2 commit 0762e1b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions BlobStorage/GettingStarted.cs
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ private static async Task BasicStoragePageBlobOperationsAsync()
await pageBlob.CreateAsync(512 * 2 /*size*/); // size needs to be multiple of 512 bytes

// Write to a page blob
Console.WriteLine("2. Write to a Page Blob");
Console.WriteLine("3. Write to a Page Blob");
byte[] samplePagedata = new byte[512];
Random random = new Random();
random.NextBytes(samplePagedata);
Expand All @@ -267,7 +267,7 @@ private static async Task BasicStoragePageBlobOperationsAsync()
// List all blobs in this container. Because a container can contain a large number of blobs the results
// are returned in segments with a maximum of 5000 blobs per segment. You can define a smaller maximum segment size
// using the maxResults parameter on ListBlobsSegmentedAsync.
Console.WriteLine("3. List Blobs in Container");
Console.WriteLine("4. List Blobs in Container");
BlobContinuationToken token = null;
do
{
Expand All @@ -282,7 +282,7 @@ private static async Task BasicStoragePageBlobOperationsAsync()
while (token != null);

// Read from a page blob
Console.WriteLine("4. Read from a Page Blob");
Console.WriteLine("5. Read from a Page Blob");
int bytesRead = await pageBlob.DownloadRangeToByteArrayAsync(samplePagedata, 0, 0, samplePagedata.Count());

// Clean up after the demo
Expand Down

0 comments on commit 0762e1b

Please sign in to comment.