在网站激活Web服务调用计时器每隔一小时 [英] Timer on Website to activate Web Service calls every hour
问题描述
如果我想运行一系列Web服务的来电每隔一小时。我怎么能做到这一点从我的Web服务器?
If I want to run a series of Web service calls every hour. How can I do that from my Web Server?
我猜存在是需要所以它递减计数,并当时间到了,这将再次消耗那些Web服务,并检索存储在数据库返回的XML数据在某处被部署一个计时器。然后,计时器再次复位。
I'm guessing there is a timer which needs to be deployed somewhere so it counts down and when the time is up, it would consume those Web service again and retrieve the returned XML data to be stored in database. Then the timer resets again.
推荐答案
如果你想从一个ASP.NET Web应用程序中做到这一点,检查出的 Quartz.NET作业调度,很适合这样的事情。
If you want to do this from within an ASP.NET web application, check out the Quartz.NET Job Scheduler, it's perfect for this sort of thing.
否则,你可以运行一个单独的应用程序作为Windows服务与计时器,或一个控制台应用程序作为Windows的计划任务。
Otherwise you could run a separate application as Windows Service with a timer, or a console application as a Windows scheduled task.
这篇关于在网站激活Web服务调用计时器每隔一小时的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!