I have 2 databases on my machine for hangfire. These are HangfireJobs and HangfireJobsForABC .
In my ASP.Net app, I have following startup class.
GlobalConfiguration.Configuration.UseSqlServerStorage("HangfireJobs");
app.UseHangfireDashboard();
app.UseHangfireServer();
Also, in my web config I have a connection pointing to HangfireJobsForABC database that is named HangfireJobs . Yet, the code above, does not use HangfireJobsForABC database but always uses HangfireJobs database. This seems like a BUG to me.
<add name="HangfireJobs" connectionString="Data Source=mym\SQLSERVER2014;Initial Catalog=HangfireJobsForABC;User Id=abc;Password=xyz;Pooling=true;Min Pool Size=0; Max Pool Size=50;Connection Timeout=60;" providerName="System.Data.SqlClient" />