From 6b571189017865a5cf5bdfa54c95d18eb6b35f43 Mon Sep 17 00:00:00 2001 From: Halil ibrahim Kalkan Date: Fri, 12 Oct 2018 09:06:41 +0300 Subject: [PATCH] Fix: Use SetConfiguration instead of AddConfiguration. --- .../DemoAppHangfireModule.cs | 2 +- .../app/Volo.Abp.BackgroundJobs.DemoApp/DemoAppModule.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 => {