hi
www.mydomain.com is host(www).
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.AspNetCore/AspNetCore/MultiTenancy/DomainTenantResolveContributor.cs#L56
Of course you can also customize the DomainTenantResolveContributor. eg: host.mydomain.com or admin.mydomain.com
hi
The code of appSession exists in wwwroot/Common/Scripts/appSession.js
.
var app = app || {};
(function () {
abp.services.app.session.getCurrentLoginInformations({ async: false })
.done(function (result) {
app.session = result;
});
})();
hi
You can try:
For mvc
var tenancyName = app.session.tenant ? app.session.tenant.tenancyName : null;
For angular
injector AppSessionService
hi
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/a49362fad71deafe1aad7a9566cd6a61676e8e0b/src/Abp.AspNetCore/AspNetCore/ApplicationPartManagerExtensions.cs#L9
hi
UserTokenExpirationWorker will get the tenants info in the host, and then switch to the tenant to execute the deletion of tokens.
It is compatible with hosts and tenants using the same database and different databases.
I don't particularly understand your code, but you can refer to UserTokenExpirationWorker.
If you have a lot of tenants and data, you can consider using sub-jobs in background jobs.
https://github.com/aspnetboilerplate/aspnetboilerplate/blob/dev/src/Abp.ZeroCore/Authorization/Users/UserTokenExpirationWorker.cs#L40-L66
hi
Are you using EF Core 2.x or 3.x? Please share some code.
hi
You can get from current UI culture (CultureInfo.CurrentUICulture.Name
)
hi
You can try adding modules to ApplicationPartManager.
public override void PostInitialize()
{
IocManager.Resolve<ApplicationPartManager>()
.AddApplicationPartsIfNotAddedBefore(typeof(YourModule).Assembly);
}
hi
You can view the documentation in github, I will fix it. : )
https://github.com/aspnetzero/documents/blob/master/docs/en/Developing-Angular-Customizable-Dashboard.md