sozsoft-platform/api/src/Sozsoft.Platform.Application/PlatformApplicationModule.cs

49 lines
1.5 KiB
C#
Raw Normal View History

2026-02-24 20:44:16 +00:00
using Sozsoft.Languages;
using Sozsoft.Notifications.Application;
using Sozsoft.Settings;
using Microsoft.Extensions.DependencyInjection;
using Volo.Abp.Account;
using Volo.Abp.Auditing;
2026-05-24 22:23:52 +00:00
using Volo.Abp.Mapperly;
2026-02-24 20:44:16 +00:00
using Volo.Abp.FeatureManagement;
using Volo.Abp.Identity;
using Volo.Abp.Modularity;
using Volo.Abp.PermissionManagement;
using Volo.Abp.TenantManagement;
namespace Sozsoft.Platform;
[DependsOn(
typeof(PlatformDomainModule),
typeof(AbpAccountApplicationModule),
typeof(PlatformApplicationContractsModule),
typeof(AbpIdentityApplicationModule),
typeof(AbpPermissionManagementApplicationModule),
typeof(AbpTenantManagementApplicationModule),
typeof(AbpFeatureManagementApplicationModule),
typeof(LanguagesApplicationModule),
typeof(SettingsApplicationModule),
typeof(NotificationApplicationModule)
)]
public class PlatformApplicationModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
2026-05-24 22:23:52 +00:00
context.Services.AddMapperlyObjectMapper<PlatformApplicationModule>();
2026-02-24 20:44:16 +00:00
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));
});
}
}