how to schedule a task in MVC4 C#?

前端 未结 7 1356
借酒劲吻你
借酒劲吻你 2020-12-09 16:22

I wanna create a notification system on my website?(something like stack-overflow)
How can we schedule a task for mailing the notification for users on each 24 hours?

7条回答
  •  粉色の甜心
    2020-12-09 17:07

    There is also a built-in option, QueueBackgroundWorkItem. It was added in .Net 4.5.2 and here is a guide on how to use it in MVC.

    In addition to previously mentioned FluentScheduler you also have HangFire. And if you plan on deploying to Azure there's a handful of different services for this.

提交回复
热议问题