|
|
@ -1,6 +1,8 @@ |
|
|
using LINGYUN.Abp.DataProtection; |
|
|
using LINGYUN.Abp.DataProtection; |
|
|
|
|
|
using Microsoft.Extensions.Caching.Distributed; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Microsoft.Extensions.DependencyInjection; |
|
|
using Volo.Abp.AutoMapper; |
|
|
using Volo.Abp.AutoMapper; |
|
|
|
|
|
using Volo.Abp.Caching; |
|
|
using Volo.Abp.Domain; |
|
|
using Volo.Abp.Domain; |
|
|
using Volo.Abp.Domain.Entities.Events.Distributed; |
|
|
using Volo.Abp.Domain.Entities.Events.Distributed; |
|
|
using Volo.Abp.Modularity; |
|
|
using Volo.Abp.Modularity; |
|
|
@ -35,6 +37,11 @@ public class AbpDataProtectionManagementDomainModule : AbpModule |
|
|
options.AutoEventSelectors.Add<OrganizationUnitEntityRule>(); |
|
|
options.AutoEventSelectors.Add<OrganizationUnitEntityRule>(); |
|
|
}); |
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
Configure<AbpDistributedCacheOptions>(options => |
|
|
|
|
|
{ |
|
|
|
|
|
options.ConfigureCache<DataProtectedResourceCacheItem>(new DistributedCacheEntryOptions()); |
|
|
|
|
|
}); |
|
|
|
|
|
|
|
|
context.Services.AddHostedService<ProtectedEntitiesSaverService>(); |
|
|
context.Services.AddHostedService<ProtectedEntitiesSaverService>(); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
|