From 13ba5744f421d2074dc78b787017d3715b055a6c Mon Sep 17 00:00:00 2001 From: Andy Date: Tue, 29 Oct 2024 11:25:35 -0400 Subject: [PATCH] Correct DI scope for IAutoSetupService --- src/OrchardCore.Modules/OrchardCore.AutoSetup/Startup.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OrchardCore.Modules/OrchardCore.AutoSetup/Startup.cs b/src/OrchardCore.Modules/OrchardCore.AutoSetup/Startup.cs index 5cc96d2d794..8198afb7e3c 100644 --- a/src/OrchardCore.Modules/OrchardCore.AutoSetup/Startup.cs +++ b/src/OrchardCore.Modules/OrchardCore.AutoSetup/Startup.cs @@ -69,7 +69,7 @@ public override void ConfigureServices(IServiceCollection services) services.Configure(o => o.ConfigurationExists = true); } - services.AddSingleton(); + services.AddScoped(); } ///