I have read several articles about how does TopShelf works. All of them are saying:
Create a Console application
Add the Topshelf NuGet package
Create a simple
testController : ApiController
to represent the service logic (I want to have my existing WEB API project to be hosting instead of this testController)...
But now I want to have my existing WEB API project to be hosting instead of this testController
. How should I replace my project with this testController
in this TopShelf console application?
Obviously I can't configure my WEB API project itself with TopShelf instead of using a Console Application because the WEB API has not an exe file like console app.
I just want to know how should I replace this test controller inside console app with my real API project?