This project has moved. For the latest updates, please go here.

A way to delete/replace a Shared object from the container

May 20, 2013 at 10:54 PM
In my PRISM application I use MEF as a container. Most of my ViewModel are Non-Shared instances, but a couple are Shared due the requeriments (being used among different views).

But in certain moments I need to delete/release those ViewModel instances.

I know that I could make them Non-Shared and use statics methods to share data among the instances, but thats not a clean way to do it.

Is there a way to do it?