fix ui展示
This commit is contained in:
@@ -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."));
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user