chore 抽象微服务基本类库
This commit is contained in:
@ -1,10 +0,0 @@
|
||||
namespace KonSoft.Admin.MultiTenancy;
|
||||
|
||||
public static class MultiTenancyConsts
|
||||
{
|
||||
/* Enable/disable multi-tenancy easily in a single point.
|
||||
* If you will never need to multi-tenancy, you can remove
|
||||
* related modules and code parts, including this file.
|
||||
*/
|
||||
public const bool IsEnabled = true;
|
||||
}
|
||||
@ -1,6 +1,5 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using Microsoft.Extensions.DependencyInjection.Extensions;
|
||||
using KonSoft.Admin.MultiTenancy;
|
||||
using Volo.Abp.AuditLogging;
|
||||
using Volo.Abp.BackgroundJobs;
|
||||
using Volo.Abp.Emailing;
|
||||
@ -56,10 +55,6 @@ public class AdminDomainModule : AbpModule
|
||||
options.Languages.Add(new LanguageInfo("es", "es", "Español"));
|
||||
});
|
||||
|
||||
Configure<AbpMultiTenancyOptions>(options =>
|
||||
{
|
||||
options.IsEnabled = MultiTenancyConsts.IsEnabled;
|
||||
});
|
||||
|
||||
#if DEBUG
|
||||
context.Services.Replace(ServiceDescriptor.Singleton<IEmailSender, NullEmailSender>());
|
||||
|
||||
Reference in New Issue
Block a user