摘要: 背景介绍: 项目环境为ASP.NET Core 2.1.2。 需要在项目启动时运行一个定时任务,在后台每隔一定时间执行任务。 实现方法: 1、写一个任务服务类继承BackgroundService public class APIDataService : BackgroundService { p 阅读全文
posted @ 2021-01-19 15:39 Hello,Code 阅读(723) 评论(0) 推荐(1) 编辑