Quantcast
Channel: ASP.NET MVC / Web API / Web Pages
Viewing all articles
Browse latest Browse all 7925

New Post: Easiest and most elegant way to inject custom IActionResultConverter instances

$
0
0

What is the easiest and most elegant way to inject new IActionResultConverter instances?

As far as I can see, HttpActionDescriptor has knowledge on ActionResultConverters and the only way I can is to override the virtual ResultConverter of the HttpActionDescriptor. However, it is not that simple because it will cost me to go all the way down to the action selector because it is the place where the ActionDescriptor is constructed.

Do I miss anything here? Is there a better way?


Viewing all articles
Browse latest Browse all 7925

Trending Articles



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