Skip to content

Commit

Permalink
Correct DI scope for IAutoSetupService
Browse files Browse the repository at this point in the history
  • Loading branch information
infofromca committed Oct 29, 2024
1 parent b039be0 commit 13ba574
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OrchardCore.Modules/OrchardCore.AutoSetup/Startup.cs
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ public override void ConfigureServices(IServiceCollection services)
services.Configure<AutoSetupOptions>(o => o.ConfigurationExists = true);
}

services.AddSingleton<IAutoSetupService, AutoSetupService>();
services.AddScoped<IAutoSetupService, AutoSetupService>();
}

/// <summary>
Expand Down

0 comments on commit 13ba574

Please sign in to comment.