From 49d58b9bbbc35ff729fed2ff6003251ef8b6df9b Mon Sep 17 00:00:00 2001 From: MysticBoy Date: Thu, 11 Mar 2021 12:44:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sample/SilkierQuartz.example.csproj | 4 ++++ sample/Startup.cs | 5 ++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sample/SilkierQuartz.example.csproj b/sample/SilkierQuartz.example.csproj index b7d1b30..ddaff3a 100644 --- a/sample/SilkierQuartz.example.csproj +++ b/sample/SilkierQuartz.example.csproj @@ -4,6 +4,10 @@ net5.0 + + TRACE;_ENABLE_AUTH + + diff --git a/sample/Startup.cs b/sample/Startup.cs index 7179cf5..6bf34aa 100644 --- a/sample/Startup.cs +++ b/sample/Startup.cs @@ -59,10 +59,13 @@ namespace SilkierQuartz.Example CronExpressionOptions = new CronExpressionDescriptor.Options() { DayOfWeekStartIndexZero = false //Quartz uses 1-7 as the range - }, + } +#if ENABLE_AUTH + , AccountName = "admin", AccountPassword = "password", IsAuthenticationPersist = false +#endif } );