Unity IoC Dependency Injection and ASP.NET Model-View-Presenter
Unity IoC Dependency Injection and ASP.NET Model-View-Presenter
The Unity IoC Container can be used in your ASP.NET Web Applications to provide dependency injection, especially when using Model-View-Presenter. There are several ways that one can use Unity to wire-up the presenter class and its dependencies to the ASP.NET view. In this example, I will use a Page Base Class that accesses the UnityContainer on the HttpApplication Class and uses Unity to create an instance of the Presenter Class associated with the view.
Happy Programming
0 Comments:
Post a Comment
<< Home