Netcore: Turn container validation back on (#9401)

* Remove RuntimeLevelAttribute & disable filtering

* Remove RuntimeLevelAttribute usage on Composers

* Fix broken tests

* Resolve UserManager registration issues.

* Turn container validation back on.

* Resolve lifetime issue post install backoffice.

* Remove final TODO: MSDI
This commit is contained in:
Paul Johnson
2020-11-17 07:56:04 +00:00
committed by GitHub
parent 76aada2aef
commit d498c1a2cd
29 changed files with 39 additions and 107 deletions

View File

@@ -21,9 +21,6 @@ namespace Umbraco.Web.UI.NetCore
x.ClearProviders();
})
.ConfigureWebHostDefaults(webBuilder => { webBuilder.UseStartup<Startup>(); })
// 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();
}
}