How to write C# Scheduler

后端 未结 6 1556
故里飘歌
故里飘歌 2020-12-31 14:40

How do I write a Alert which will run at 00:00, 00:15, 00:30, and so on every day?

Can you give me an example code?

Thank you.

6条回答
  •  南笙
    南笙 (楼主)
    2020-12-31 14:58

    There are different timers in .NET

    • System.Threading.Timer
    • System.Windows.Forms.Timer
    • System.Timers.Timer

    Depending on what you want to do (and in which environment, threadsave, bla bla) you should choose one of them.

    some more information

提交回复
热议问题