Support interface as controller
Open
affected-very-few
area-mvc
enhancement
feature-mvc-application-model
Needs: Attention :wave:
severity-minor
- Dominant language
- C#
- Stars
- 38.4k
- Forks
- 10.9k
- Avg merge
- 2d 10h
- Merged PRs (30d)
- 281
Description
I am trying to mark a interface as Controller, but in DefaultApplicationModelProvider.CreateControllerModel throw a NullReferenceException

interface 's BaseType is null, so throw exception.
If currentTypeInfo is Interface ,you can break this cycle. let me use IControllerModelConvention to set the route or other feature.
Contributor guide
Assessment
This issue has not been assessed yet.