|
|
|
@ -463,6 +463,7 @@ public class PeisHttpApiHostModule : AbpModule |
|
|
|
{ |
|
|
|
config.UsePostgreSqlStorage(configuration.GetConnectionString("Default")); |
|
|
|
}); |
|
|
|
context.Services.AddHangfireServer(); |
|
|
|
} |
|
|
|
public override async void OnApplicationInitialization(ApplicationInitializationContext context) |
|
|
|
{ |
|
|
|
@ -486,7 +487,11 @@ public class PeisHttpApiHostModule : AbpModule |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
app.UseHangfireDashboard(); |
|
|
|
|
|
|
|
app.UseHangfireDashboard("/hangfire", new DashboardOptions |
|
|
|
{ |
|
|
|
Authorization = new[] { new CustomAuthorizeFilter() } |
|
|
|
}); |
|
|
|
|
|
|
|
app.UseCorrelationId(); |
|
|
|
|
|
|
|
|