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

Domain service - getting error - Must set LocalizationSourceName before #9385


User avatar
0
marble68 created

8.9 Core / jQuery

I have a background job that runs for all tenants and sends an email to them.

When it tries to notify i get the error Must set LocalizationSourceName before...

I need to not only resolve this - but as I go through tenants, get their localization setting.

My worker class is basedon PeriodicBackgroundWorkerBase.

To send the email, it calls a method in a different class - my own emailer class, which inherits from workServiceBase, IUserEmailer, ITransientDependency

Thus, two questions -

1- How can I use localization in a class based on PeriodicBackgroundWorkerBase

and

2- Since I'm calling a function for different tenants, how do I change localization for each tenant as I go through them?

Thanks!


1 Answer(s)
  • User Avatar
    0
    maliming created
    Support Team

    hi

    When it tries to notify i get the error Must set LocalizationSourceName before...

    Can you share some simple code?