Author: anup_daware | Posted on: 9/13/2010 7:33:46 AM | Views : 1203

Hi,


In my webservice  I have used a thread and  a timer, on application start I initialize the timer and timer controls the thread execution.


public static void InitializeMessagingTimer() { _myThreadTimer.Change(_timerDueTime, _timerPeriod); } catch { //Log the exception } }
 
Thread fetches data from database, builds and sends the emails / sms according to data.


My problem is  when the application is deployed or is reset because some change in web.config and if there is data to be processed in database, the processing does not start until some of the web method of webserivice is not accessed. Reason is because application start does not happen this means the timer is not initialized and thread is not started.


Is there any way to trigger the appl ...

Go to the complete details ...