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.
49 lines
1.7 KiB
49 lines
1.7 KiB
using Microsoft.Extensions.Caching.Distributed;
|
|
using System;
|
|
using Volo.Abp.AuditLogging;
|
|
using Volo.Abp.BackgroundJobs;
|
|
using Volo.Abp.Caching;
|
|
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;
|
|
using CompanyNameProjectName.MultiTenancy;
|
|
|
|
namespace CompanyNameProjectName
|
|
{
|
|
[DependsOn(
|
|
typeof(CompanyNameProjectNameDomainSharedModule),
|
|
typeof(AbpAuditLoggingDomainModule),
|
|
typeof(AbpBackgroundJobsDomainModule),
|
|
typeof(AbpFeatureManagementDomainModule),
|
|
typeof(AbpIdentityDomainModule),
|
|
typeof(AbpPermissionManagementDomainIdentityModule),
|
|
typeof(AbpIdentityServerDomainModule),
|
|
typeof(AbpPermissionManagementDomainIdentityServerModule),
|
|
typeof(AbpSettingManagementDomainModule),
|
|
typeof(AbpTenantManagementDomainModule),
|
|
typeof(EasyAbp.Abp.SettingUi.SettingUiDomainModule),
|
|
typeof(AbpCachingModule)
|
|
)]
|
|
public class CompanyNameProjectNameDomainModule : AbpModule
|
|
{
|
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
|
{
|
|
Configure<AbpMultiTenancyOptions>(options =>
|
|
{
|
|
options.IsEnabled = MultiTenancyConsts.IsEnabled;
|
|
});
|
|
|
|
// 设置全局默认缓存时间
|
|
//Configure<AbpDistributedCacheOptions>(option =>
|
|
//{
|
|
// option.GlobalCacheEntryOptions.SetSlidingExpiration(TimeSpan.FromSeconds(7200));
|
|
//});
|
|
}
|
|
}
|
|
}
|
|
|