PresentationManager.AddPresenters(Assembly.GetExecutingAssembly());
public class PoCoRailPresenterFactory : IPoCoRailPresenterFactory{ public TPresenterInterface CreatePresenter<TPresenterInterface>(IPoCoRailWebContext poCoRailWebContext) { return PresentationManager.CreatePresenter<TPresenterInterface>(poCoRailWebContext); }}
Due to the comparative simplicity of this, and the lack of any external dependency, I think I've gone the right way with this decision, but the recent release of StructureMap 2.0 with its programmatic configuration has made me consider the issue again. As there is a PresenterFactory in place, I'm considering writing an alternative derivation to support the use of StructureMap. This should allow people to choose what they feel most comfortable with. There is also the possibility that I could utilize StructureMap in creation of any UserControl Views.