About

This IoC container provides a custom IPresenterFactory which utilizes StructureMap (http://structuremap.github.com/structuremap/ ) as the underlying frameowrk.

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

Usage

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 6:43 AM by lewisbenge, version 1

Comments

No comments yet.