How does my console project Owin know the controllers in another library?

I have API controllers in an add-on project separate from the console project where Owin is hosted.

Requests to the controller work, but how is this done?

How does my console project know the project, where are my controllers?

List all added links and check types inheriting from ApiController?

+4
source share
1 answer

I may disappoint you, but there should be no magic .; -)

I see two possibilities how your console project could find out about the assembly where your controllers are:

  • You are using a custom assembly resolver (like this one here )
  • - , .

, :

enter image description here

+2

All Articles