Skip to Content
Hands-On Azure for Developers
book

Hands-On Azure for Developers

by Kamil Mrzygłód
November 2018
Intermediate to advanced
606 pages
15h 7m
English
Packt Publishing
Content preview from Hands-On Azure for Developers

Developing solutions with Azure Service Bus SDK

There is a rich database of many different examples for working with Azure Service Bus, available on GitHub (you can find a link in the Further reading section), so we will cover only the basic ones in this chapter. Here you can find the most simple way to send a message to a queue:

using System.Text;using System.Threading.Tasks;using Microsoft.Azure.ServiceBus;namespace HandsOnAzure.ServiceBus{    internal class Program    {        private static void Main()        {            MainAsync().GetAwaiter().GetResult();        }        private static async Task MainAsync()        {            var client = new QueueClient("<connection-string>", "<queue-name>");            var message = "This is my message!"; await client.SendAsync(new Message(Encoding.UTF8.GetBytes(message))); ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Implementing Azure: Putting Modern DevOps to Use

Implementing Azure: Putting Modern DevOps to Use

Florian Klaffenbach, Oliver Michalski, Markus Klein, Mohamed Wali

Publisher Resources

ISBN: 9781789340624Supplemental Content