Quantcast
Channel: ASP.NET Core
Viewing all articles
Browse latest Browse all 9386

How to register a single Controller type rather than all Controllers in assembly?

$
0
0

Hi,

I can register all controllers in a separate assembly by registering the assembly via builder.AddApplicationPart(assembly) and calling AddControllersAsServices.

However, How do I register just one controller in an assembly which may contain many controllers?

Thanks heaps.


Viewing all articles
Browse latest Browse all 9386

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>