Send message from C# to rabbitMQ

Posted in IT StuffTagged , ,

For first download and install the .NET/C# AMQP client library On Visual Studio, include the RabbitMQ.Client reference import the library into the class: using RabbitMQ.Client; using RabbitMQ.Client.Framing.v0_8;using RabbitMQ.Client; using RabbitMQ.Client.Framing.v0_8; At this point initialise the queue and connection to the RabbitMQ broker in the constructor: var connectionFactory = new ConnectionFactory(); connectionFactory.HostName = HostName; Connection =….