C# 定时任务 hangfire 之 业务层注入

首先定义一个类

 

 在configureService中添加

 

 在configure 中使用注入

 

posted @ 2020-07-27 10:30  E山猫  阅读(902)  评论(0编辑  收藏  举报