using Volo.Abp.Mapperly.SampleClasses; using Volo.Abp.Modularity; using Volo.Abp.ObjectExtending; using Volo.Abp.Threading; namespace Volo.Abp.Mapperly; [DependsOn( typeof(AbpMapperlyModule), typeof(AbpObjectExtendingTestModule) )] public class MapperlyTestModule : AbpModule { private static readonly OneTimeRunner OneTimeRunner = new OneTimeRunner(); public override void PreConfigureServices(ServiceConfigurationContext context) { OneTimeRunner.Run(() => { ObjectExtensionManager.Instance .AddOrUpdateProperty("Tag") .AddOrUpdateProperty("Secret") .AddOrUpdateProperty("Tag") .AddOrUpdateProperty("Secret"); }); } }