Possible Duplicate:
Can I pass constructor parameters to Unity’s Resolve() method?
Constructor Injection in C#/Unity?
It is possible to resolve a dependency with unity passing arguments in the constructor of the service to resolve ?
If it is how I can do it ?
Create an
InjectionConstructorand pass that toRegisterType():If you have to do it only when you resolve the type, that’s when
ResolverOverride[]would be used:Per MSDN: