Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5058

How to register a unity IoC type in web.config so that it uses a specific constructor?

$
0
0

I've found several places that explain how to specify a constructor when registering a type in Unity IoC using source code, but what about in a configuration file? I'd like to register a type in my web.config and specify which constructor to be used, however I don't want to pass the parameter in the config file, I need to pass the parameter in code during a resolve. Is this possible?

Appreciate your time and assistance on this!


Viewing all articles
Browse latest Browse all 5058

Trending Articles



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