How to write C# Scheduler

后端 未结 6 1438
故里飘歌
故里飘歌 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 15:03

    You can write your program to execute certain task every time it is opened then you use Windows Scheduled Tasks to execute your program every day at certain times.

    your program will be simpler and you will focus only on the logic you need to implement, the scheduling will be done by Windows for you, for free (assuming you already paid Windows :) ).

    if you really want to implement the scheduling by yourself, there are frameworks and libraries like this one: Quartz.NET

提交回复
热议问题