Merge remote-tracking branch 'origin/netcore/task/6973-migrating-authenticationcontroller' into netcore/task/6973-migrating-authenticationcontroller-merge

# Conflicts:
#	src/Umbraco.Web.BackOffice/Controllers/BackOfficeServerVariables.cs
#	src/Umbraco.Web.BackOffice/Extensions/BackOfficeApplicationBuilderExtensions.cs
#	src/Umbraco.Web/Logging/WebProfilerComponent.cs
#	src/Umbraco.Web/Logging/WebProfilerComposer.cs
This commit is contained in:
Bjarke Berg
2020-10-26 14:37:56 +01:00
319 changed files with 2620 additions and 5552 deletions

View File

@@ -21,6 +21,10 @@ namespace Umbraco.Web.UI.NetCore
x.ClearProviders();
})
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
// TODO: MSDI - this should probably be on one day, more so when we can reduce the number
// of times we build a ServiceProvider from services collection
// right now it's just painful.
.UseDefaultServiceProvider(options => options.ValidateOnBuild = false)
.UseUmbraco();
}
}

View File

@@ -33,7 +33,10 @@ namespace Umbraco.Web.UI.NetCore
public void ConfigureServices(IServiceCollection services)
{
var umbracoBuilder = services.AddUmbraco(_env, _config);
umbracoBuilder.BuildWithAllBackOfficeComponents();
umbracoBuilder
.WithAllBackOfficeComponents()
.WithAllWebsiteComponents()
.Build();
}