Moves more services and registrations "up", removes AspNetCoreComposer logic and moves to AddWebComponents

This commit is contained in:
Shannon
2020-12-24 14:29:26 +11:00
parent 1328ca3cee
commit e785ac28a3
47 changed files with 402 additions and 429 deletions

View File

@@ -2,6 +2,7 @@ using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Options;
using Umbraco.Core.DependencyInjection;
using Umbraco.Infrastructure.DependencyInjection;
using Umbraco.Infrastructure.PublishedCache.DependencyInjection;
using Umbraco.Web.Website.Controllers;
using Umbraco.Web.Website.Routing;
@@ -35,7 +36,7 @@ namespace Umbraco.Web.Website.DependencyInjection
builder.Services.AddScoped<UmbracoRouteValueTransformer>();
builder.Services.AddSingleton<IUmbracoRenderingDefaults, UmbracoRenderingDefaults>();
builder.AddNuCache();
builder.AddDistributedCache();
return builder;
}