50 lines
1.6 KiB
C#
50 lines
1.6 KiB
C#
using Kurs.Languages;
|
||
using Kurs.Notifications.Application;
|
||
using Kurs.Settings;
|
||
using Microsoft.Extensions.DependencyInjection;
|
||
using Volo.Abp.Account;
|
||
using Volo.Abp.Auditing;
|
||
using Volo.Abp.AutoMapper;
|
||
using Volo.Abp.FeatureManagement;
|
||
using Volo.Abp.Identity;
|
||
using Volo.Abp.Modularity;
|
||
using Volo.Abp.PermissionManagement;
|
||
using Volo.Abp.TenantManagement;
|
||
|
||
namespace Kurs.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)
|
||
{
|
||
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));
|
||
});
|
||
}
|
||
}
|