diff --git a/src/Abp.ElasticSearch/ElasticSearch/AbpElasticSearchModule.cs b/src/Abp.ElasticSearch/ElasticSearch/AbpElasticSearchModule.cs index 3141a2c..e583494 100644 --- a/src/Abp.ElasticSearch/ElasticSearch/AbpElasticSearchModule.cs +++ b/src/Abp.ElasticSearch/ElasticSearch/AbpElasticSearchModule.cs @@ -15,7 +15,7 @@ public override void PreInitialize() if (Configuration.Modules.ElasticSearch()?.UseAuditingLog == true) { - IocManager.RegisterIfNot(); + IocManager.RegisterIfNot(DependencyLifeStyle.Transient); } }