我必须从该 Helper 方法调用 Web API,该方法会将所需数据转储到数据库。
I wanted to create a method which will be called automatically every hour.
我是否需要从启动 CS 文件中调用它,如果是,那么如何调用它?
The intended method will suppose to call API to get the data which will be dumped in SQL database in hourly manner.
最佳答案
为此,我强烈推荐 Hangfire。 https://www.hangfire.io/
关于c# - 如何在.net core 中安排一个方法?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/51810947/