C
C#8mo ago
aleja550

❔ How can i get connection string for Hangfire in Multitenant Environment?

Hello, I'm trying to use Hangfire, but it requires the connection string. I work with multitenants, and the connection string is obtained only through the IHttpContextAccessor, which means I get it when a request is made. However, I need to obtain it at the beginning. Each multitenant has its own databases, and I need each one to create Hangfire tables. Also, I can't hardcode the connection string in the appsettings.json. How can I resolve this?
1 Reply
Accord
Accord8mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.