is there an event that fires at a specific time?

不羁的心 提交于 2020-01-25 05:19:21

问题


Is there a .NET event that fires at a specific time (eg. at 19:00) as opposed to timer which fires when the countdown finishes? It can be used as a scheduler to call certain method.


回答1:


Take a look at Quartz.net.

It's a great scheduling library for .net.




回答2:


Not exactly but you can use timer and check if it is 19:00 already it its elapsed event and then fire the required code.

Otherwise you can put your code in Task Scheduler to get it executed at 19:00




回答3:


You can use Quartz.NET to run a method at specified time.




回答4:


If you want a scheduler you can use a 3rd party library called Quartz.net



来源:https://stackoverflow.com/questions/4122509/is-there-an-event-that-fires-at-a-specific-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!