问题
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