Skip to content

Commit 3a63398

Browse files
committed
Fixed tab syntax
1 parent 1377f70 commit 3a63398

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

articles/storage/queues/storage-dotnet-how-to-use-queues.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -429,6 +429,8 @@ CloudQueueMessage retrievedMessage = queue.GetMessage();
429429
queue.DeleteMessage(retrievedMessage);
430430
```
431431

432+
---
433+
432434
## Use Async-Await pattern with common Queue storage APIs
433435

434436
This example shows how to use the Async-Await pattern with common Queue storage APIs. The sample calls the asynchronous version of each of the given methods, as indicated by the *Async* suffix of each method. When an async method is used, the async-await pattern suspends local execution until the call completes. This behavior allows the current thread to do other work, which helps avoid performance bottlenecks and improves the overall responsiveness of your application. For more details on using the Async-Await pattern in .NET see [Async and Await (C# and Visual Basic)](https://msdn.microsoft.com/library/hh191443.aspx)
@@ -494,6 +496,8 @@ await queue.DeleteMessageAsync(retrievedMessage);
494496
Console.WriteLine("Deleted message");
495497
```
496498

499+
---
500+
497501
## Leverage additional options for de-queuing messages
498502

499503
There are two ways you can customize message retrieval from a queue. First, you can get a batch of messages (up to 32). Second, you can set a longer or shorter invisibility timeout, allowing your code more or less time to fully process each message.
@@ -550,6 +554,8 @@ foreach (CloudQueueMessage message in queue.GetMessages(20, TimeSpan.FromMinutes
550554
}
551555
```
552556

557+
---
558+
553559
## Get the queue length
554560

555561
# [\.NET v12](#tab/dotnet)
@@ -600,6 +606,8 @@ int cachedMessageCount = queue.ApproximateMessageCount;
600606
Console.WriteLine("Number of messages in queue: " + cachedMessageCount);
601607
```
602608

609+
---
610+
603611
## Delete a queue
604612

605613
# [\.NET v12](#tab/dotnet)
@@ -639,6 +647,8 @@ CloudQueue queue = queueClient.GetQueueReference("myqueue");
639647
queue.Delete();
640648
```
641649

650+
---
651+
642652
## Next steps
643653

644654
Now that you've learned the basics of Queue storage, follow these links

0 commit comments

Comments
 (0)