Fix: Use SetConfiguration instead of AddConfiguration.

pull/556/head
Halil ibrahim Kalkan 6 years ago
parent 483184155d
commit 6b57118901

@ -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<IGlobalConfiguration>(hangfireConfiguration =>
{

@ -23,7 +23,7 @@ namespace Volo.Abp.BackgroundJobs.DemoApp
{
var configuration = ConfigurationHelper.BuildConfiguration();
context.Services.AddConfiguration(configuration);
context.Services.SetConfiguration(configuration);
context.Services.Configure<DbConnectionOptions>(options =>
{

Loading…
Cancel
Save