| 123456789101112131415161718192021222324252627282930 |
- using Abp.AutoMapper;
- using Abp.Modules;
- using Abp.Reflection.Extensions;
- using VberAdmin.Authorization;
- namespace VberAdmin;
- [DependsOn(
- typeof(VberAdminCoreModule),
- typeof(AbpAutoMapperModule))]
- public class VberAdminApplicationModule : AbpModule
- {
- public override void PreInitialize()
- {
- Configuration.Authorization.Providers.Add<VberAdminAuthorizationProvider>();
- }
- public override void Initialize()
- {
- var thisAssembly = typeof(VberAdminApplicationModule).GetAssembly();
- IocManager.RegisterAssemblyByConvention(thisAssembly);
- Configuration.Modules.AbpAutoMapper().Configurators.Add(
- // Scan the assembly for classes which inherit from AutoMapper.Profile
- cfg => cfg.AddMaps(thisAssembly)
- );
- }
- }
|