-
Book Overview & Buying
-
Table Of Contents
RabbitMQ Cookbook
.NET is one of the official RabbitMQ clients, and in this example, we are going to create a subscriber using it. We will use Microsoft Windows Presentation Foundation (WPF) in order to create our first desktop application. Check out http://msdn.microsoft.com/en-us/library/ms754130.aspx for more information.
We are going to bind the .NET client to the Java dispatcher from the recipe Broadcasting messages in Chapter 1, Working with AMQP.
You can find the source code for this example in the directory Chapter04/Recipe01.
You need Visual Studio 2008 or later, Windows with .NET framework 3.5 or 4, and the RabbitMQ .NET client library, RabbitMQ.Client.dll, which you can download from https://www.rabbitmq.com/dotnet.html.
In order to realize a .NET application that makes use of RabbitMQ to consume messages, perform the following steps:
Create a WPF application and then add the RabbitMQ.Client.dll reference.
Connect to the broker using:
connection_factory.Uri...
Change the font size
Change margin width
Change background colour