Repository navigation
|
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: |
Answered by
javiercn
Aug 25, 2020
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. |
0 replies
Answer selected by
javiercn
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to 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.