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.

45 lines
1.4 KiB

2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
2 years ago
  1. using Microsoft.Extensions.DependencyInjection;
  2. using Shentun.Peis.OrganizationUnits;
  3. using Shentun.WebPeis.Users;
  4. using Volo.Abp.Account;
  5. using Volo.Abp.AutoMapper;
  6. using Volo.Abp.Caching;
  7. using Volo.Abp.Caching.StackExchangeRedis;
  8. using Volo.Abp.FeatureManagement;
  9. using Volo.Abp.Identity;
  10. using Volo.Abp.Modularity;
  11. using Volo.Abp.PermissionManagement;
  12. using Volo.Abp.SettingManagement;
  13. using Volo.Abp.TenantManagement;
  14. namespace Shentun.WebPeis;
  15. [DependsOn(
  16. typeof(WebPeisDomainModule),
  17. typeof(AbpAccountApplicationModule),
  18. typeof(WebPeisApplicationContractsModule),
  19. typeof(AbpIdentityApplicationModule),
  20. typeof(AbpPermissionManagementApplicationModule),
  21. typeof(AbpTenantManagementApplicationModule),
  22. typeof(AbpFeatureManagementApplicationModule),
  23. typeof(AbpSettingManagementApplicationModule),
  24. typeof(AbpCachingStackExchangeRedisModule)
  25. )]
  26. public class WebPeisApplicationModule : AbpModule
  27. {
  28. public override void ConfigureServices(ServiceConfigurationContext context)
  29. {
  30. Configure<AbpAutoMapperOptions>(options =>
  31. {
  32. options.AddMaps<WebPeisApplicationModule>();
  33. });
  34. context.Services.AddTransient<OrganizationUnitsAppService>();
  35. context.Services.AddTransient<UserAppService>();
  36. Configure<AbpDistributedCacheOptions>(options =>
  37. {
  38. options.KeyPrefix = "WebPeis";
  39. options.HideErrors = false;
  40. });
  41. }
  42. }