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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user