From cdcea1571b905319e188998f4ae9722a53d28567 Mon Sep 17 00:00:00 2001 From: Argo Zhang Date: Tue, 10 Sep 2019 12:56:03 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E6=A0=BC=E5=BC=8F=E5=8C=96?= =?UTF-8?q?=E8=AF=B4=E6=98=8E=E6=96=87=E5=AD=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/admin/Bootstrap.Admin/Views/Admin/Tasks.cshtml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/admin/Bootstrap.Admin/Views/Admin/Tasks.cshtml b/src/admin/Bootstrap.Admin/Views/Admin/Tasks.cshtml index fb143b80..e1d10b56 100644 --- a/src/admin/Bootstrap.Admin/Views/Admin/Tasks.cshtml +++ b/src/admin/Bootstrap.Admin/Views/Admin/Tasks.cshtml @@ -29,7 +29,7 @@ TaskServicesManager.GetOrAdd("简单任务", token => Task.Delay(1000));

-

2. 周期性任务 (1 分钟后间隔 5 秒执行2次任务)

+

2. 周期性任务 (1 分钟后间隔 5 秒执行 2 次任务)

var trigger = TriggerBuilder.Default.WithInterval(TimeSpan.FromSeconds(5)).WithRepeatCount(2).WithStartTime(DateTimeOffset.Now.AddMinutes(1)).Build(); @@ -37,7 +37,7 @@ TaskServicesManager.GetOrAdd("测试任务", token => Task.Delay(1000), trigger);

-

3. Cron表达式任务 (间隔 5 秒循环执行任务)

+

3. Cron 表达式任务 (间隔 5 秒循环执行任务)

TaskServicesManager.GetOrAdd("Cron表达式任务", token => Task.Delay(1000), TriggerBuilder.Build("*/5 * * * * *"));