Asif_Aziz Ответов: 0

Как я могу выполнять свою задачу синхронизации БД после каждого двухчасового веб-приложения


I have a scenario in which I have to sync my local database to my online database. I am doing that with Microsoft sync framework. Now I want to execute this function in my web application so that after every 2 hour this should executed(Without window scheduler). How I can do this? please give a code example as I am new in this area.

I have used <a href="https://dhavalupadhyaya.wordpress.com/2008/08/30/how-to-create-scheduled-jobs-in-net-web-applications/">this code</a> in my application suggested by Hari and it is running. First time the code is executed fine but when it reaches next time stamp the, a message displayed in output window "The thread 0x22d4 has exited with code 0 (0x0)." In no work is done, then again and again when the time comes it shows the same message and no work is done. I am new to threading so, I think I am missing some setting to allow this thread. please any one can help?

Regards,
Asif Aziz.


Что я уже пробовал:

I have used <a href="https://dhavalupadhyaya.wordpress.com/2008/08/30/how-to-create-scheduled-jobs-in-net-web-applications/">this code</a> in my application suggested by Hari and it is running. First time the code is executed fine but when it reaches next time stamp the, a message displayed in output window "The thread 0x22d4 has exited with code 0 (0x0)." In no work is done, then again and again when the time comes it shows the same message and no work is done. I am new to threading so, I think I am missing some setting to allow this thread

0 Ответов