Multitenancy application for Hangfire

Hi,

We are in the process of converting our application to multitenancy. For each individual user logging into our system, we have the connection string saved in the user’s session, which means we can’t call

GlobalConfiguration.Configuration.UseSqlServerStorage(connectionString, hangFireSqlOptions);

at OWIN startup, because the session and connection string is not setup yet.

Though we might be able to postpone the call to later, but this call needs to be made in startup:

app.UseHangfireDashboard(“hangfire”, dashboardoptions);

without the previous call, this call would fail. Is there a solution to this problem?

Thank you very much!
Zhen

1 Like