Best way to get an ASP.NET page to work at intervals?

I made this application that takes temporary records from fogbugz and sends them to basecamp, however right now it needs to be started manually. For me there is a requirement to make it work weekly or nightly, what is the best way to do this?

+3
source share
5 answers

Create a scheduled task ?

+2
source

IMO, the best way is to write a web service that performs the scheduled tasks. And to develop a Windows service that will call your web service depending on your schedule.

+1
source

, ASP.NET, ? , : , .

" ASP.NET", " ". : -

  • , .
  • ASP.NET, ,

, -, , .

, , . , , , / .

DB , , . Web Gardens Farms , .

, , , .

+1

Windows, WebRequest. - global.asax Application_Start. , :

IIS?

0

++ on the comments of Canavar and gattaca, but I would avoid the background thread question. I heard that sometimes these threads can be recycled, and since your application does not restart, they go into nothing. I could be wrong. In any case, less memory and reliable performance are attributed to the Windows service ... unless you are on a shared host that will not allow you to install the service.

0
source

Source: https://habr.com/ru/post/1707886/


All Articles