Pass runtime value to constructor using Simple Injector abd WebFormsMVP
问题 I'm trying to combine SimpleInjector with WebFormsMvp . To facilitate DI WebFormsMvp provides the IPresenterFactory interface. It contains the Create method which provides the presenter type to resolve and the view instance . I need to inject the view instance into the constructor of the presenter . The presenter also has other dependencies that need creating by the container . This is what I got so far, but it is not ideal. What's the correct solution for the problem? Presenter constructor: