Oct 26, 2009 at 8:22 PM
Edited Oct 26, 2009 at 8:24 PM
The main page of your project states that "The Unity Application Block (Unity) is a lightweight
extensible dependency injection"
Could you give me a hint how to implement feature described in the subject of this topic?
More detailed: I have following classes
MainView( IView1 v1, IView2 v2, IMainPresenter mp )
MainPresenter( IPresenter1 p1, IPresenter2 p2 )
View1( IPresenter1 p1 )
View2( IPresenter2 p2)
I wish that MainPresenter, View1 and View2 receive the same instance of IPresenter1 and IPresenter2.
But they must not be registered as singletons, I need that new instances of IPresenter1 and 2 be instantiated for each call of container.Resolve<MainView>();
How to implement this feature without changing the source code of Unity?
Thanks in advance