NetCore FluentScheduler 定时任务使用方式
引用 FluentScheduler
包
注册FluentSchedule服务
在程序入口 Program.cs 中注册服务
创建文件
定义扫描定时任务类 ServiceCollectionExtensions
using FluentScheduler;
using System.Reflection;
namespace Test.ServiceExtensions
{
/// <summary>
/// 扫描当前程序集下面所有的自定义 定时任务
/// </summary>
public static class ServiceCollectionExtensions
{
//扫描当前程序集中实现了Registry类
public static void AddFluentScheduler(this IServiceColl