I have a WCf service. AMong with several services I need to write a piece of code that always check for updates in a SAP table and update a SQL Server database.
This function need to start when the server starts and should never stop.
I tried to use AppInitialize, but when the service starts it never get past this code.
What should I do?
You need to create a separate thread to run this function. See Thread.