I use PRISM v2.2 UnityContainer to hold the instance of MyView. When I call the second time of Resolve method, should I expect to get the return of the same instance from the Unity? The problem is the constructor of MyView is called twice. Every time
I call Resolve method, I get a new instance.
var view1 = _container.Resolve<MyView>(“MyView”);
var view2 = _container.Resolve<MyView>(“MyView”);
What’s the correctly way to let the Unity return the same instance?