fix ui展示

This commit is contained in:
2024-01-02 22:11:33 +08:00
parent baf18bec47
commit ebffe59360

View File

@@ -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."));
}
}
}