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:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user