I have to write an windows service in .NET 4.6/C#, which reads messages from RabbitMQ queues and does some processing based on message type. Processing includes reading the message and based on business rules, insert/update SQL database and send out another message confirming the successful processing of the message received.
Entire service is done implementing OnSatrt() and OnStop() events in
ServiceBase class. Reading queues and processing is all completed. The missing piece for me here is how to have the same windows service to accept http commands for starting, stopping and restarting the service. How can I design a windows service with http capabilities and 24x7 processing logic within it?
I am not looking for a whole design or entire code here, just need an idea on how a windows service in .NET can accept http commands while its processing data from queues.