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.
43 lines
1.5 KiB
43 lines
1.5 KiB
3 years ago
|
using Microsoft.Extensions.DependencyInjection;
|
||
|
using Volo.Abp.AutoMapper;
|
||
|
using Volo.Abp.Modularity;
|
||
|
|
||
|
namespace Sanhe.Abp.Identity
|
||
|
{
|
||
|
[DependsOn(
|
||
|
typeof(Volo.Abp.Identity.AbpIdentityApplicationModule),
|
||
|
typeof(AbpIdentityApplicationContractsModule),
|
||
|
typeof(AbpIdentityDomainModule))]
|
||
|
public class AbpIdentityApplicationModule : AbpModule
|
||
|
{
|
||
|
// private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner();
|
||
|
public override void ConfigureServices(ServiceConfigurationContext context)
|
||
|
{
|
||
|
context.Services.AddAutoMapperObjectMapper<AbpIdentityApplicationModule>();
|
||
|
|
||
|
Configure<AbpAutoMapperOptions>(options =>
|
||
|
{
|
||
|
options.AddProfile<AbpIdentityApplicationModuleAutoMapperProfile>(validate: true);
|
||
|
});
|
||
|
}
|
||
|
|
||
|
//public override void PostConfigureServices(ServiceConfigurationContext context)
|
||
|
//{
|
||
|
// OneTimeRunner.Run(() =>
|
||
|
// {
|
||
|
// ObjectExtensionManager.Instance
|
||
|
// .AddOrUpdateProperty<string>(
|
||
|
// new[]
|
||
|
// {
|
||
|
// typeof(IdentityUserDto),
|
||
|
// typeof(IdentityUserCreateDto),
|
||
|
// typeof(IdentityUserUpdateDto),
|
||
|
// typeof(ProfileDto),
|
||
|
// typeof(UpdateProfileDto)
|
||
|
// },
|
||
|
// ExtensionIdentityUserConsts.AvatarUrlField);
|
||
|
// });
|
||
|
//}
|
||
|
}
|
||
|
}
|