From b37cdaffe9c781be065b481b4e615fbd51509e7f Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Tue, 23 Feb 2021 13:19:05 +0800 Subject: [PATCH] fix errror --- sample/Startup.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sample/Startup.cs b/sample/Startup.cs index 923d6ac..f6e0ccc 100644 --- a/sample/Startup.cs +++ b/sample/Startup.cs @@ -70,7 +70,7 @@ namespace SilkierQuartz.Example }); //How to compatible old code to SilkierQuartz //将旧的原来的规划Job的代码进行移植兼容的示例 - app.SchedulerJobs(); + // app.SchedulerJobs(); #region 不使用 SilkierQuartzAttribe 属性的进行注册和使用的IJob,这里通过UseQuartzJob的IJob必须在 ConfigureServices进行AddQuartzJob @@ -81,7 +81,7 @@ namespace SilkierQuartz.Example return TriggerBuilder.Create() .WithSimpleSchedule(x => x.WithIntervalInSeconds(1).RepeatForever()); }); - + app.UseQuartzJob(new List { TriggerBuilder.Create()