Reputation: 179
I'm very new to web programming with MVC so i dont know how to call a method, for example, every hour and also on command. (Method is supposed to fetch files from an FTP server, skip the already parsed files, and parse the ones that havent been into objects and insert them in a database)
I know if i were using WindowsForms i'd probably be using Timer.Tick Events, WPF would use the DispatcherTimer class, but a web server is a whole different ball game so could somebody please point me in the right direction?
Ive been reading about Web services, WCF? Some event driven thing?
All i have right now is an MVC3 project, a database, repositories using EF, the whole works..
Thanks in advance!
Upvotes: 2
Views: 115
Reputation: 81459
The simplest way would be to use the Task Scheduler to access a particular URL in your site on a given interval.
I.E. Make use of something that already works very well as a general purpose mechanism on your platform... rather than unnecessarily reinventing for a specific use.
Upvotes: 2