Sunday 15 June 2014

unity container - ASP.NET MVC Property (Setter) Injection Outside Controllers -


For WebApi and action controllers, I'm able to easily solve the dependency by implementing the [dependency] attribute. All the layers during all the processes are also fine by using setter injection. The problem is that when any other class is used within my presentation level then it is unable to resolve [dependency] I know that I can use dependency resoler. Present. GETService or Controller injection but I'm curious why this feature only works within my controllers within the presentation.


No comments:

Post a Comment