Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How Are POCO Controllers Discovered As Controllers?

Tags:

asp.net-core

How does the framework know my POCO is a controller if it does not inherit from the Controller base class?

like image 414
mxmissile Avatar asked Jun 05 '14 14:06

mxmissile


1 Answers

There are some conventions that we use to identify a POCO controller:

  1. The assembly must reference MVC
  2. The POCO controller class must have the suffix Controller
like image 142
Victor Hurdugaci Avatar answered Oct 13 '22 02:10

Victor Hurdugaci