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?
2 replies