Restored Umbraco.Web and added temporary methods for converstion between legacy and new configuration models to maintain build.

This commit is contained in:
Andy Butland
2020-08-23 15:58:37 +02:00
parent 89b725ef28
commit 2f22313ceb
31 changed files with 187 additions and 69 deletions

View File

@@ -28,6 +28,7 @@ using Umbraco.Core.Persistence.SqlSyntax;
using Umbraco.Core.Runtime;
using Umbraco.Web.Common.AspNetCore;
using Umbraco.Web.Common.Profiler;
using ConnectionStrings = Umbraco.Core.Configuration.Models.ConnectionStrings;
using CoreDebugSettings = Umbraco.Core.Configuration.Models.CoreDebugSettings;
namespace Umbraco.Extensions
@@ -124,6 +125,9 @@ namespace Umbraco.Extensions
services.Configure<ModelsBuilderConfig>(configuration.GetSection(Constants.Configuration.ConfigModelsBuilderPrefix));
services.Configure<ImagingSettings>(configuration.GetSection(Constants.Configuration.ConfigPrefix + "Imaging:"));
// TODO: HealthChecksSettings (+ one other?)
// TODO: remove this
var configsFactory = new AspNetCoreConfigsFactory(configuration);
var configs = configsFactory.Create();
services.AddSingleton(configs);