I want to initiate some method at the moment the code is hosted on the IIS. So far I tried the same by calling that method from global.asax application_start method. But then i have to open the api on the browser once.
For e.g.:- I have a method which creates sql dependency and I want it to be activated just on the moment of deployment on the IIS.Right now I have to browse the api once to make sql dependency activated.
I am using framework 4.5 and MVC Web API
I don't want to use window service or any console solution
Please help me out!!!