From 511fb159c4a12f7f51da7b5b6c6594b96ba8c0db Mon Sep 17 00:00:00 2001 From: TekH Date: Mon, 13 Jul 2026 13:23:07 +0200 Subject: [PATCH] Update Hangfire Dashboard Authorization syntax Updated the `Authorization` property in `app.UseHangfireDashboard` to use modern C# collection initialization syntax (square brackets) instead of the older array initialization syntax (curly braces). This change ensures consistency with modern C# conventions. --- ECMJobRunner.WebCron/Program.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ECMJobRunner.WebCron/Program.cs b/ECMJobRunner.WebCron/Program.cs index c961fb9..611d8b8 100644 --- a/ECMJobRunner.WebCron/Program.cs +++ b/ECMJobRunner.WebCron/Program.cs @@ -140,7 +140,7 @@ app.UseAuthorization(); // Add Hangfire Dashboard with no authentication (for development) app.UseHangfireDashboard("/hangfire", new DashboardOptions { - Authorization = new[] { new AllowAllDashboardAuthorizationFilter() } + Authorization = [new AllowAllDashboardAuthorizationFilter()] }); // Add Health Check UI route (accessible outside Hangfire dashboard)