|
|
|
@ -1,7 +1,10 @@ |
|
|
|
using MyCompanyName.MyProjectName.MultiTenancy; |
|
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
|
using Microsoft.Extensions.DependencyInjection.Extensions; |
|
|
|
using MyCompanyName.MyProjectName.MultiTenancy; |
|
|
|
using MyCompanyName.MyProjectName.ObjectExtending; |
|
|
|
using Volo.Abp.AuditLogging; |
|
|
|
using Volo.Abp.BackgroundJobs; |
|
|
|
using Volo.Abp.Emailing; |
|
|
|
using Volo.Abp.FeatureManagement; |
|
|
|
using Volo.Abp.Identity; |
|
|
|
using Volo.Abp.IdentityServer; |
|
|
|
@ -24,8 +27,9 @@ namespace MyCompanyName.MyProjectName |
|
|
|
typeof(AbpIdentityServerDomainModule), |
|
|
|
typeof(AbpPermissionManagementDomainIdentityServerModule), |
|
|
|
typeof(AbpSettingManagementDomainModule), |
|
|
|
typeof(AbpTenantManagementDomainModule) |
|
|
|
)] |
|
|
|
typeof(AbpTenantManagementDomainModule), |
|
|
|
typeof(AbpEmailingModule) |
|
|
|
)] |
|
|
|
public class MyProjectNameDomainModule : AbpModule |
|
|
|
{ |
|
|
|
public override void PreConfigureServices(ServiceConfigurationContext context) |
|
|
|
@ -39,6 +43,10 @@ namespace MyCompanyName.MyProjectName |
|
|
|
{ |
|
|
|
options.IsEnabled = MultiTenancyConsts.IsEnabled; |
|
|
|
}); |
|
|
|
|
|
|
|
#if DEBUG
|
|
|
|
context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>()); |
|
|
|
#endif
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|