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:
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:
1 2 3 4 |
app.UseHangfireDashboard(hangfireUrl, new DashboardOptions { DashboardTitle = "myAPI" }); |
If we now start the Hangfire dashboard, we get the name of our application on the dashboard:
With this little trick we know exactly what dashboard is in front of us.