Change the Name of the Hangfire Dashboard

Hangfire is a great tool to for background processing in .Net. We use it for all our projects, and it works without any problems.

There is only one bit of nitpicking we found: If you use Hangfire with multiple projects, it is a bit hard to keep the dashboards apart. By default, the tile reads “Hangfire Dashboard” in all of them:

The title reads 'Hangfire Dashboard'.

Luckily, we can change that with a bit of configuration. In the Program.cs file of the dashboard project, we can add our own name:

If we now start the Hangfire dashboard, we get the name of our application on the dashboard:

The title now reads myAPI instead of Hangfire Dashboard

With this little trick we know exactly what dashboard is in front of us.

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.