erp-platform/api/src/Erp.Platform.Application/PlatformApplicationModule.cs

53 lines
1.6 KiB
C#
Raw Normal View History

2025-11-11 19:49:52 +00:00
using Erp.Languages;
using Erp.Notifications.Application;
using Erp.Settings;
2025-05-06 06:45:49 +00:00
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Account;
using Volo.Abp.Auditing;
2025-05-06 06:45:49 +00:00
using Volo.Abp.AutoMapper;
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement;
using Volo.Abp.TenantManagement;
2025-11-11 19:49:52 +00:00
namespace Erp.Platform;
2025-05-06 06:45:49 +00:00
[DependsOn(
typeof(PlatformDomainModule),
typeof(AbpAccountApplicationModule),
typeof(PlatformApplicationContractsModule),
typeof(AbpIdentityApplicationModule),
typeof(AbpPermissionManagementApplicationModule),
typeof(AbpTenantManagementApplicationModule),
typeof(AbpFeatureManagementApplicationModule),
typeof(LanguagesApplicationModule),
typeof(SettingsApplicationModule),
2026-01-07 07:57:23 +00:00
typeof(NotificationApplicationModule)
2025-05-06 06:45:49 +00:00
)]
public class PlatformApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
context.Services.AddAutoMapperObjectMapper<PlatformApplicationModule>();
Configure<AbpAutoMapperOptions>(options =>
{
options.AddMaps<PlatformApplicationModule>();
});
Configure<PermissionManagementOptions>(options =>
{
options.IsDynamicPermissionStoreEnabled = true;
options.SaveStaticPermissionsToDatabase = true;
});
// ListFormCustomization için audit kaydı kapatılıyor
Configure<AbpAuditingOptions>(options =>
{
options.IgnoredTypes.Add(typeof(Entities.ListFormCustomization));
});
2025-05-06 06:45:49 +00:00
}
}
2025-11-11 19:49:52 +00:00