mirror of https://github.com/abpframework/abp
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
1.5 KiB
45 lines
1.5 KiB
using MyCompanyName.MyProjectName.MultiTenancy;
|
|
using MyCompanyName.MyProjectName.ObjectExtending;
|
|
using Volo.Abp.AuditLogging;
|
|
using Volo.Abp.BackgroundJobs;
|
|
using Volo.Abp.FeatureManagement;
|
|
using Volo.Abp.Identity;
|
|
using Volo.Abp.IdentityServer;
|
|
using Volo.Abp.Modularity;
|
|
using Volo.Abp.MultiTenancy;
|
|
using Volo.Abp.PermissionManagement.Identity;
|
|
using Volo.Abp.PermissionManagement.IdentityServer;
|
|
using Volo.Abp.SettingManagement;
|
|
using Volo.Abp.TenantManagement;
|
|
|
|
namespace MyCompanyName.MyProjectName
|
|
{
|
|
[DependsOn(
|
|
typeof(MyProjectNameDomainSharedModule),
|
|
typeof(AbpAuditLoggingDomainModule),
|
|
typeof(AbpBackgroundJobsDomainModule),
|
|
typeof(AbpFeatureManagementDomainModule),
|
|
typeof(AbpIdentityDomainModule),
|
|
typeof(AbpPermissionManagementDomainIdentityModule),
|
|
typeof(AbpIdentityServerDomainModule),
|
|
typeof(AbpPermissionManagementDomainIdentityServerModule),
|
|
typeof(AbpSettingManagementDomainModule),
|
|
typeof(AbpTenantManagementDomainModule)
|
|
)]
|
|
public class MyProjectNameDomainModule : AbpModule
|
|
{
|
|
public override void PreConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
MyProjectNameDomainObjectExtensions.Configure();
|
|
}
|
|
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpMultiTenancyOptions>(options =>
|
|
{
|
|
options.IsEnabled = MultiTenancyConsts.IsEnabled;
|
|
});
|
|
}
|
|
}
|
|
}
|