Good day ANZ team,
I have recently added in hangfire into our solution.
I noticed that hangfire only triggers on the main host company and not for the tenants or It might be that I am missing something on this side.
What I am basically trying to achieve is the following: -Process data imports into the specific tenants based on the predefined data queries triggered from a query table in that tenant. -The query execution itself is not an issue if I can access the repositories for that specific tenant in the list as I have a functional integration in place where the data comes from based on those queries.
How can I achieve data imports via hangfire per tenant of which each tenant has iets own database?
Thanks in advance!
2 Answer(s)
-
0
Hi,
In order to access a tenants data (or database if tenant has a separate database), you need to swithc to tenant context, see https://aspnetboilerplate.com/Pages/Documents/Multi-Tenancy#switching-between-host-and-tenants
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image) -
0
Thanks Ismcagdas,
After going through the support forum, this is literally 100 times easier than what some people went through to implement hangfire for tenants usage.
Works great!
Thanks again!
Markdown is supportedCopy & paste or drag & drop images (max 30 MB per image)