From 222342969cfe4a83a86a670b3e2f88c898f182b8 Mon Sep 17 00:00:00 2001
From: Falcon <12919280+falconfly@user.noreply.gitee.com>
Date: Thu, 20 Feb 2025 17:24:11 +0800
Subject: [PATCH] =?UTF-8?q?CronSchedule=E6=94=B9=E4=B8=BA=E5=BF=85?=
=?UTF-8?q?=E9=A1=BB=E5=AE=9E=E7=8E=B0=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
Falcon.SugarApi/TimedBackgroundTask/TimedTask.cs | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
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;
///
/// 获取下次执行任务的计划