IBackgroundJobClient for different servers


#1

In my .net core apps:

I’ve two Hangfire Servers, one connected to SQL A and other to SQL B.
I have got a client that uses GlobalConfiguration.Configuration.UseSqlServerStorage with SQL A.
I’ve IBackgroundJobClient injected using .net core DI.

The injected BackgroundJobClient uses the global configuration and is hooked up with SQL A.

How can I have IBackgroundJobClient injected for either SQL A or SQL B so that depending on my use case can I enqueue job in either server A or server B?