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

Signed-off-by: Bjarke Berg <mail@bergmania.dk>

# Conflicts:
#	src/Umbraco.Infrastructure/HealthCheck/NotificationMethods/EmailNotificationMethod.cs
#	src/Umbraco.Web/Editors/AuthenticationController.cs
This commit is contained in:
Bjarke Berg
2020-10-26 14:30:59 +01:00
319 changed files with 2623 additions and 5551 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();
}