EasyNetQ with asp.net web api as a subscriber

I need to implement an asp.net web api that acts as a subscriber to rabbitMQ. The Windows service is about to post to the web api services. There will be more than one instance of a web api running on a production environment. I am not sure how to open the subscriber channel in the web api and keep it open until IIS restarts. There will be one publisher and several consumers.

Can anyone consult some sample code to get started?

Any help would be greatly appreciated

+4
source share
1 answer

RabbitMQ IIS, . IIS , .

, RabbitMQ , , Global.asax.cs , , .

Windows , - IIS, , , API Windows.

+7

All Articles