Crystal Sharp framework - Message Broker
code example with RabbitMQ
.
This example uses RabbitMQ
as a message broker.
WebAPI
project sends the message to a message broker.
Console
application receives the message from the message queue.
RabbitMQ
server must be running.- Change the
RabbitMQ
settings inappsettings.json
file in theWebAPI
project. - Change the
RabbitMQ
settings inappsettings.json
file in theConsole
application. - Change the
Queue
name in theOrderController.cs
file. - Change the
Queue
name in theConsole
applicationProgram.cs
file. Queue
name must exist on theRabbitMQ
server.- Run the
WebAPI
project andConsole
application.