Register configuration in startup

This commit is contained in:
hishamco
2021-04-18 02:27:31 +03:00
parent 73b13d7a54
commit a018e853a8
2 changed files with 3 additions and 4 deletions

View File

@ -82,7 +82,8 @@ namespace Oqtane
services.AddTransient<IUserClaimsPrincipalFactory<IdentityUser>, ClaimsPrincipalFactory<IdentityUser>>();
// register singleton scoped core services
services.AddOqtaneSingletonServices(Configuration);
services.AddSingleton(Configuration)
.AddOqtaneSingletonServices();
// install any modules or themes ( this needs to occur BEFORE the assemblies are loaded into the app domain )
InstallationManager.InstallPackages("Modules,Themes", _env.WebRootPath, _env.ContentRootPath);