From the course: Learning RabbitMQ

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Consuming from a RabbitMQ exchange

Consuming from a RabbitMQ exchange - RabbitMQ Tutorial

From the course: Learning RabbitMQ

Start my 1-month free trial

Consuming from a RabbitMQ exchange

- [Instructor] We have a web application to book fictional tours and it's sending messages to RabbitMQ. Let's write a small console application that can pretend to be the service that will send out confirmation emails. In Visual Studio create a new project and select the .NET Core Console App template. Give your project a name. I'll call mine ExploreCalifornia.EmailService and click on the Create button. In the Solution Explorer right-click on your project and select Manage NuGet Packages. And in the Browse tab search for RabbitMQ.Client. You can select a package and click on the install button and confirm the installation. In the Program.cs file you can add a using RabbitMQ.Client statement. Now we need a connection the to RabbitMQ instance. You can find the necessary code in the Exercise Files. Open the Ch_02 folder and open the connectionCode.txt file. You can copy paste the necessary code over to your Program.cs…

Contents