-
To my suprise, when adding a controller class in a separate assembly, it gets added automatically to the service. For example:
In other words, the controller mapper seems to traverse every dependency and adds whatever controller that comes in its way. In 3.0 and earlier, I think one had to something like this:
Is this intentional behaviour ? Attached example here: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
@oyvindi thanks for contacting us. This has been the behavior since asp.net core 1.0. I'm not sure why you had to add the part manually in your case, other than you explicitly disabled the dependencycontext generation. |
Beta Was this translation helpful? Give feedback.
@oyvindi thanks for contacting us.
This has been the behavior since asp.net core 1.0. I'm not sure why you had to add the part manually in your case, other than you explicitly disabled the dependencycontext generation.