You can see if there is a setting information for the tenant with id 2 in the AbpSettings table of the database.
we will implement it in AspNet Zero, probably in the next first or second milestone.
https://github.com/aspnetzero/aspnet-zero-core/issues/1227#issuecomment-462224006
I don't know your specific business. As I said above, if you want to get the tenant's settings you need to find a way to get TenantId.
The problem now is that this requires the correct tenant ID (because you need to get the settings for this tenant), can you get the tenant ID via device unlock requests?
Then call using (_unitOfWorkManager.Current.SetTenantId(YourTenantId))
What is the function of the SendDeviceUnlockNotification
method? Is it a notification to all tenants?
Please share your code (including AppSettingProvider)
Try creating an empty database first, then try to execute Update-Database
.
Yes, the background job has no session information. You can pass TenantId to the background job and then set the TenantId of the current session (also for userid)
see: https://aspnetboilerplate.com/Pages/Documents/Abp-Session#overriding-current-session-values
You can inject the session and see. I guess there is no tenant id currently, so you got the wrong return value.
Is MyConstants.DealerNo
setting related to tenants and users?