Adds new method WithCustomDefaultMiddleware

To be able to fully customize the default middleware pipeline. Renames some interfaces and methods to be more consistent. Changes the startup builder interface types to be more type safe.
This commit is contained in:
Shannon
2021-07-16 16:04:14 -06:00
parent eec3f0f421
commit ab66a9f33c
15 changed files with 146 additions and 101 deletions

View File

@@ -62,8 +62,8 @@ namespace Umbraco.Cms.Web.UI.NetCore
app.UseUmbraco()
.WithMiddleware(u =>
{
u.WithBackOffice();
u.WithWebsite();
u.UseBackOffice();
u.UseWebsite();
})
.WithEndpoints(u =>
{