mirror of
https://github.com/Myxelium/Lunaris2.0.git
synced 2026-07-08 05:45:10 +00:00
19 lines
501 B
C#
19 lines
501 B
C#
using Hangfire;
|
|
|
|
namespace Lunaris2.Registration;
|
|
|
|
public static class HangfireRegistration
|
|
{
|
|
public static IApplicationBuilder UseHangfireDashboardAndServer(this IApplicationBuilder app, string dashboardPath = "/hangfire")
|
|
{
|
|
var dashboardOptions = new DashboardOptions
|
|
{
|
|
DarkModeEnabled = true,
|
|
DashboardTitle = "Lunaris Jobs Dashboard"
|
|
};
|
|
|
|
app.UseHangfireDashboard(dashboardPath, dashboardOptions);
|
|
|
|
return app;
|
|
}
|
|
} |