How to create a thread that runs all the time in the background on a .net website?

I intend to create a small website that will try a third-party web service, say every 15 minutes, store the collected data in db and display the results through web pages.

I want the survey to work 24 hours a day with or without a website visitor.

I know that I could create a standalone application that could run on a server to do this, but is there a clean way to include this in the site code. I need something that would be easy to deploy to a third-party hosting site cheep.

Any pointers in the right direction would be welcome.

thanks

+5
source share
2

global.asax -.

, .

.

, , -.

System.Threading.Thread.CurrentThread.IsBackground = true;
+5

Windows . , - .

. Windows , .

Windows .net , , , .net:

http://www.codeproject.com/KB/system/WindowsService.aspx

, , , -, , , , "" - Windows.

Edit:

, . , , , , , Windows .

+3

All Articles