Relative Content

Tag Archive for asp.net-coreentity-framework-coremiddlewaremulti-tenanthangfire

How to Handle Hangfire with Dynamic Connection Strings Based on URL in ASP.NET Core 7 MVC Multi-Tenant Application?

I’m working on a multi-tenant ASP.NET Core 7 MVC application where each tenant has its own database. The connection string changes based on the URL, with each URL corresponding to a different tenant and its specific database connection string. I need to integrate Hangfire to handle background jobs, but I’m facing challenges with configuring Hangfire to use dynamic connection strings based on the tenant. Additionally, I need to handle the Hangfire Dashboard to show data specific to the current tenant.