diff --git a/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs b/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs index 725f35b..6a28a24 100644 --- a/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs +++ b/Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs @@ -27,15 +27,16 @@ namespace Falcon.SugarApi.TimedBackgroundTask /// 如果继续执行返回True,否则False public abstract Task Run(CancellationToken cancellationToken); - /// - /// Timer心跳 - /// - public virtual int Heartbeat { get; set; } = 1; /// /// 执行计划的Cron串 /// - public virtual string CronSchedule { get; set; } = "30 * * * * *"; + public abstract string CronSchedule { get; } + + /// + /// Timer心跳 + /// + public virtual int Heartbeat { get; protected set; } = 1; /// /// 获取下次执行任务的计划