diff --git a/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp.HangFire/DemoAppHangfireModule.cs b/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp.HangFire/DemoAppHangfireModule.cs index b1d27a3e39..27809f3d5c 100644 --- a/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp.HangFire/DemoAppHangfireModule.cs +++ b/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp.HangFire/DemoAppHangfireModule.cs @@ -19,7 +19,7 @@ namespace Volo.Abp.BackgroundJobs.DemoApp.HangFire public override void PreConfigureServices(ServiceConfigurationContext context) { var configuration = ConfigurationHelper.BuildConfiguration(); - context.Services.AddConfiguration(configuration); + context.Services.SetConfiguration(configuration); context.Services.PreConfigure(hangfireConfiguration => { diff --git a/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp/DemoAppModule.cs b/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp/DemoAppModule.cs index 65c5affff7..acdba328a3 100644 --- a/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp/DemoAppModule.cs +++ b/modules/background-jobs/app/Volo.Abp.BackgroundJobs.DemoApp/DemoAppModule.cs @@ -23,7 +23,7 @@ namespace Volo.Abp.BackgroundJobs.DemoApp { var configuration = ConfigurationHelper.BuildConfiguration(); - context.Services.AddConfiguration(configuration); + context.Services.SetConfiguration(configuration); context.Services.Configure(options => {