From ebffe593602c04ea3c174026e5ec9c3140761f53 Mon Sep 17 00:00:00 2001 From: liguoyang Date: Tue, 2 Jan 2024 22:11:33 +0800 Subject: [PATCH] =?UTF-8?q?fix=20ui=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Src/Dlhis.ScheduledTask/HangfirePack.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Src/Dlhis.ScheduledTask/HangfirePack.cs b/Src/Dlhis.ScheduledTask/HangfirePack.cs index 040d4e0d..4359a5c1 100644 --- a/Src/Dlhis.ScheduledTask/HangfirePack.cs +++ b/Src/Dlhis.ScheduledTask/HangfirePack.cs @@ -7,7 +7,7 @@ namespace Dlhis.ScheduledTask { public class HangfirePack : BaseAppPack { - public override bool IsBeforeUseRouting { get; } + public override bool IsBeforeUseRouting => true; public override void ConfigureServices(IServiceCollection services) { @@ -36,20 +36,24 @@ namespace Dlhis.ScheduledTask Authorization = new[] { new BasicAuthAuthorizationFilter(new BasicAuthAuthorizationFilterOptions - { + { + RequireSsl = false, + SslRedirect = false, Users = new [] { new BasicAuthAuthorizationUser { Login ="admin", - PasswordClear = "zxc111" + PasswordClear = "admin" } } }) } }); - + app.UseHangfireDashboard(); BackgroundJob.Enqueue(() => Console.WriteLine("This is a background job.")); + + } } }