更新时间:2022-11-03 20:04:45
如果我理解你想要的场景定期在服务器上运行一些代码。如果是这种情况,那么我认为Windows服务更适合。
If I understood your scenario you want to periodically run some code on the server.If this is the case then I think windows service is better suited.
check ASP.NET中的简单后台任务 [ ^ ]
check Easy Background Tasks in ASP.NET[^]
探索
http://www.hanselman.com/blog/HowToRunBackgroundTasksInASPNET.aspx [ ^ ]
https://github.com/StephenCleary/AspNetBackgroundTasks [ ^ ]
http://hangfire.io / [ ^ ]
Explore
http://www.hanselman.com/blog/HowToRunBackgroundTasksInASPNET.aspx[^]
https://github.com/StephenCleary/AspNetBackgroundTasks[^]
http://hangfire.io/[^]