Base solution for your next web application
Starts in:
01 DAYS
01 HRS
01 MIN
01 SEC
Open Closed

Can we resolve IRepositoryTenantTable on Hangfire Background Job #10499


User avatar
0
MellowoodMedical created

Hi Support Team, I have one concerning about External Hangfire background service. I do able inject HostDbContext in HangfireAppService. But how can I inject IRepositoryTenantTable base on TenantId, or perhaps TenantConnectionString ? And how can I inject ICustomRepository base on TenantId, or perhaps TenantConnectionString ?

Implement of ICustomRepository has some function/methods that I would like to re-use instead of create new TenantDbContext


1 Answer(s)