Merge pull request #13734 from abpframework/auto-merge/rel-6-0/1287

Merge branch dev with rel-6.0
pull/13741/head
maliming 3 years ago committed by GitHub
commit 846194d32c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -3,6 +3,9 @@ using Volo.Abp.Identity;
using Volo.Abp.Localization;
using Volo.Abp.Localization.ExceptionHandling;
using Volo.Abp.Modularity;
using Volo.Abp.ObjectExtending;
using Volo.Abp.ObjectExtending.Modularity;
using Volo.Abp.Threading;
using Volo.Abp.Validation.Localization;
using Volo.Abp.VirtualFileSystem;
@ -13,6 +16,8 @@ namespace Volo.Abp.Account;
)]
public class AbpAccountApplicationContractsModule : AbpModule
{
private readonly static OneTimeRunner OneTimeRunner = new OneTimeRunner();
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<AbpVirtualFileSystemOptions>(options =>
@ -33,4 +38,17 @@ public class AbpAccountApplicationContractsModule : AbpModule
options.MapCodeNamespace("Volo.Account", typeof(AccountResource));
});
}
public override void PostConfigureServices(ServiceConfigurationContext context)
{
OneTimeRunner.Run(() =>
{
ModuleExtensionConfigurationHelper.ApplyEntityConfigurationToApi(
IdentityModuleExtensionConsts.ModuleName,
IdentityModuleExtensionConsts.EntityNames.User,
getApiTypes: new[] { typeof(ProfileDto) },
updateApiTypes: new[] { typeof(UpdateProfileDto) }
);
});
}
}

Loading…
Cancel
Save