You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As well as having the factory available in the registration's lambda callback, it would be super useful to know the type of the class of which the constructor is being resolved.
You can check out the RegisterConstructorDependency method . It passes the parameter for which the dependency is being injected.
Check out this blog post that I wrote about logging a while back. It uses the RegisterConstructordependency to provide loggers that are tied to the services that the loggers are being injected into to. http://www.lightinject.net/webapirequestlogging/
Hello,
I'd like to be able to register callback that lets me do some checks on the type being resolved before resolving a constructor dependency.
Something very similar to property injection on existing instance.
As well as having the factory available in the registration's lambda callback, it would be super useful to know the type of the class of which the constructor is being resolved.
At the moment it seems the only way to achieve this is using an initializer?
PS: Did I mention I'd like to do all this with property injection disabled?
The text was updated successfully, but these errors were encountered: