aspnet / Mvc

[Archived] ASP.NET Core MVC is a model view controller framework for building dynamic web sites with clean separation of concerns, including the merged MVC, Web API, and Web Pages w/ Razor. Project moved to https://github.com/aspnet/AspNetCore
Apache License 2.0
5.62k stars 2.14k forks source link

Refactor MVC endpoint integration for templates #8695

Closed JamesNK closed 5 years ago

JamesNK commented 5 years ago

Contributes to https://github.com/aspnet/Routing/issues/909

MapApplication and MapControllerRoute extension methods for 3.0 templates. This is hacky at the moment but before 3.0 RTM the technology underlying this will use application parts.

In this PR I also got rid of the overloads that take a generic type. Because there are multiple types that could come into play - controller type and assembly type - I think it would be better to set this info fluently. Curious what thoughts there are on doing this.