In the demo, you will leverage message publisher and message consumer to connect the Azure Storage Queue and operate with messages.
- Visual Studio Code
- Net 6.0
-
Open Publisher project and locate
Program.cs
. -
In the code of the
Program.cs
update the connection string with your connection info from the Azure Storage Queue created from previous demo. -
Build and run the
publisher
that send a few messages in the queue. You can observer the messages from Azure Portal by using Storage Explorer.
-
Repeat the same steps with updating
Program.cs
for Consumer project. -
Build and run the
consumer
that receive the messages sent bypublisher
. -
[1] option demonstrate you receiving 3 messages and explicit delete; [2] option demonstrate you receiving and updating messages with explicit delete it later. [3] option will peak messages to observe without deletion.