Reputation: 626
I am migrating an MVC app to hosted blazor and the routing setup seems to skip the HangFire Dashboard. It always falls back to the Blazor app and renders 404 since the /hangfire route does not exist.
I have tried
app.UseHangfireDashboard();
and
app.UseEndpoints(endpoints =>
{
endpoints.MapHangfireDashboard();
}
but it seems not to work. Same applies to HealthChecksUI. Did you get it serving on a hosted blazor app?
Upvotes: 1
Views: 976
Reputation: 11
I haven't managed to fix Blazor's routing - but there is a workaround: Make a razor page containing a hangfire iframe:
@page "/HangfireContainer"
<iframe src="@("hangfire")"></iframe>
@code {
}
Upvotes: 1