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.
35 lines
1.1 KiB
35 lines
1.1 KiB
3 years ago
|
using Volo.Abp.Application;
|
||
|
using Volo.Abp.AuditLogging;
|
||
|
using Volo.Abp.AuditLogging.Localization;
|
||
|
using Volo.Abp.Authorization;
|
||
|
using Volo.Abp.Features;
|
||
|
using Volo.Abp.Localization;
|
||
|
using Volo.Abp.Modularity;
|
||
|
using Volo.Abp.VirtualFileSystem;
|
||
|
|
||
|
namespace Sanhe.Abp.Auditing
|
||
|
{
|
||
|
[DependsOn(
|
||
|
typeof(AbpFeaturesModule),
|
||
|
typeof(AbpAuthorizationModule),
|
||
|
typeof(AbpAuditLoggingDomainSharedModule),
|
||
|
typeof(AbpDddApplicationContractsModule))]
|
||
|
public class AbpAuditingApplicationContractsModule : AbpModule
|
||
|
{
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
Configure<AbpVirtualFileSystemOptions>(options =>
|
||
|
{
|
||
|
options.FileSets.AddEmbedded<AbpAuditingApplicationContractsModule>();
|
||
|
});
|
||
|
|
||
|
Configure<AbpLocalizationOptions>(options =>
|
||
|
{
|
||
|
options.Resources
|
||
|
.Get<AuditLoggingResource>()
|
||
|
.AddVirtualJson("/Sanhe/Abp/Auditing/Localization/Resources");
|
||
|
});
|
||
|
}
|
||
|
}
|
||
|
}
|