Receiving messages from Azure Service Bus in .Net Core

For some time now we can observe how new .Net Core framework is growing and become more mature. Version 2.0 was released in August 2017 and it is more capable and supports more platforms then it’s previous releases. But the biggest feature of this brand new Microsoft framework is its performance and it’s ability to… Continue reading Receiving messages from Azure Service Bus in .Net Core

Getting messages from Service Bus queue

In the previous post I discussed how to implement sending messages. In this post I will show how to receive messages. The simplest code looks like this:

Program will now receive a message, parse body as string and output it on console. But messages should be read as they appear, so there need to… Continue reading Getting messages from Service Bus queue

Sending messages to Azure Service Bus queue

To connect to Azure Service Bus you need to import nuget package: WindowsAzure.ServiceBus. Next step would be getting a connection string to your resource group. It can be found in Azure Portal, in Service Bus section. It should look like this: Copy connection string – primary key and paste it in App.config file. A key… Continue reading Sending messages to Azure Service Bus queue