Views: 2.9K
Replies: 0
Archived
|
Resolve Class in Different Layers Using UnityContainerHi, I am using dependecy injection in Asp.Net MVC 3 with unity container. I register classes in web config and i resolve them in controller initialize method or constructor. So can i resolve a class in Business Layer, or Service Layer or DataAccess Layer. ForExample i register CustomerDto DataTransferObject in Global.asax and I want to Resolve it in ServiceLayer. I know that static variables Application Wide so I can access this from EveryWhere in the Application. Am I correct ? Thanks. BestRegards. Volkan Genç, Mar 07, 2013
|