No need to register controllers into container, DefaultControllerActivator works fine.

This commit is contained in:
Paul Johnson
2020-11-11 19:15:30 +00:00
parent 8775770d76
commit 7561bb5244
9 changed files with 7 additions and 104 deletions

View File

@@ -21,9 +21,8 @@ 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.
// TODO: MSDI - this should probably be on one day
// First we need to resolve the composition conditional registration issues see #8563
.UseDefaultServiceProvider(options => options.ValidateOnBuild = false)
.UseUmbraco();
}