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

首先定义一个类

 在configureService中添加

 在configure 中使用注入

原文地址:https://www.cnblogs.com/quwujin/p/13384059.html