tags:

views:

287

answers:

1

In Prism can we have another instance of unity at module level to register the classes in a particular module.so that i will not load the application level unity with so many classes in different modules.

+1  A: 

I think what you are looking for is a scoped unity container. Here's an article on it: http://blogs.microsoft.co.il/blogs/gilf/archive/2008/07/26/using-unity-container-hierarchies.aspx

This would allow your users to get all of the types registered in the "Parent" container, but also allow them to add their own without affecting the "Parent" container.

HTH, Anderson

Anderson Imes

related questions