This project is read-only.


This IoC container provides a custom IPresenterFactory which utilizes StructureMap ( ) as the underlying frameowrk.

This IPresenterFactory resides in the WebFormsMvp.Contrib.StructureMap assembly, in the StructureMapPresenterFactory class.


The StructureMap IPresenterFactory can be used like any other custom IPresenterFactory, but requires a StructureMap container to be passed into its constructor. The following example demonstrates the initalizing of this PresenterFactory in the Application_Start event in the Global.asax :

 protected void Application_Start(object sender, EventArgs e)
     var container = new Container();
     PresenterBinder.Factory = new StructureMapPresenterFactory(container);

Last edited Apr 9, 2010 at 7:43 AM by lewisbenge, version 1


No comments yet.