Cleanup AddUmbraco & AddUmbracoCore

This commit is contained in:
Paul Johnson
2020-11-20 12:24:16 +00:00
parent 5e2de50382
commit 0241649f7f
9 changed files with 245 additions and 311 deletions

View File

@@ -32,12 +32,10 @@ namespace Umbraco.Web.UI.NetCore
// For more information on how to configure your application, visit https://go.microsoft.com/fwlink/?LinkID=398940
public void ConfigureServices(IServiceCollection services)
{
var umbracoBuilder = services.AddUmbraco(_env, _config);
umbracoBuilder
.AddAllBackOfficeComponents(_env)
services.AddUmbraco(_env, _config)
.AddAllBackOfficeComponents()
.AddUmbracoWebsite()
.Build();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.